To pass data from a HAP to a HAR, the HAR should expose methods that the HAP can call. The HAP calls these methods to pass required data to the HAR, achieving data transfer.