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

VR 播放器的代理协议。 More...

#include "AliVRPlayerDelegate.h"

Inheritance diagram for <AliVRPlayerDelegate>:

Instance Methods

(void) - gestureAngleChanged:
 手势控制角度发生变化时的回调。
(void) - motionSensorAngleChanged:
 运动传感器角度发生变化时的回调。

Detailed Description

VR 播放器的代理协议。

该协议定义了 VR 播放器在交互过程中角度变化的回调方法。

所有方法均为可选实现(@optional)。

Method Documentation

◆ gestureAngleChanged:

- (void) gestureAngleChanged: (CGFloat) gestureAngleX
optionalrequired

手势控制角度发生变化时的回调。

当用户通过手势(如滑动)控制 VR 视角时,水平角度发生变化会调用此方法。

Parameters
gestureAngleX手势控制的水平角度值

◆ motionSensorAngleChanged:

- (void) motionSensorAngleChanged: (CGFloat) sensorAngleX
optional

运动传感器角度发生变化时的回调。

当设备的运动传感器(如陀螺仪)检测到水平角度变化时调用此方法。

Parameters
sensorAngleX传感器检测到的水平角度值

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