WhiteDisplayerState Class Reference

Inherits from WhiteObject
Conforms to YYModel
Declared in WhiteDisplayerState.h

Overview

The WhiteDisplayerState class is inherited by the WhiteRoom objects.

+ setCustomGlobalStateClass:

Sets the customized GlobalState class.

+ (BOOL)setCustomGlobalStateClass:(Class)clazz

Parameters

clazz

The customized GlobalState class, which must extend the WhiteGlobalState class.

Note:

If you use Swift, you need to add the @objc modifier to the properties when configuring the properties of the WhiteGlobalState subclass.

@return

  • YES:Sets successfully.
  • NO:Fails to set, and it reverts to the WhiteGlobalState class.

Discussion

A successful call of this method casts all WhiteGlobalState variables to the instances of the customized class.

Declared In

WhiteDisplayerState.h

  globalState

The global state of the room. See WhiteGlobalState.

@property (nonatomic, strong, readonly, nullable) WhiteGlobalState *globalState

Declared In

WhiteDisplayerState.h

  roomMembers

The users in interactive mode (with read and write permissions). See WhiteRoomMember.

@property (nonatomic, strong, readonly, nullable) NSArray<WhiteRoomMember*> *roomMembers

Declared In

WhiteDisplayerState.h

  sceneState

The state of the scenes under the current scene directory. See WhiteSceneState.

@property (nonatomic, strong, readonly, nullable) WhiteSceneState *sceneState

Declared In

WhiteDisplayerState.h

  cameraState

The state of the camera. See WhiteCameraState.

@property (nonatomic, strong, readonly, nullable) WhiteCameraState *cameraState

Declared In

WhiteDisplayerState.h