AliyunPlayer v7.10.0
Aliyun Player API Reference Manual for iOS Platforms
Loading...
Searching...
No Matches
<AliVRPlayerDelegate> Protocol Reference

Delegate protocol for VR player. More...

#include "AliVRPlayerDelegate.h"

Inheritance diagram for <AliVRPlayerDelegate>:

Instance Methods

(void) - gestureAngleChanged:
 Called when the gesture-controlled angle changes.
(void) - motionSensorAngleChanged:
 Called when the motion sensor angle changes.

Detailed Description

Delegate protocol for VR player.

This protocol defines callback methods for angle changes during VR player interaction.

All methods are optional (@optional).

Method Documentation

◆ gestureAngleChanged:

- (void) gestureAngleChanged: (CGFloat) gestureAngleX
optionalrequired

Called when the gesture-controlled angle changes.

This method is invoked when the user controls the VR viewing angle via gestures (e.g., panning), and the horizontal angle changes.

Parameters
gestureAngleXThe horizontal angle value controlled by gestures

◆ motionSensorAngleChanged:

- (void) motionSensorAngleChanged: (CGFloat) sensorAngleX
optional

Called when the motion sensor angle changes.

This method is invoked when the device's motion sensor (e.g., gyroscope) detects a change in horizontal angle.

Parameters
sensorAngleXThe horizontal angle value detected by the sensor

The documentation for this protocol was generated from the following file: