AgoraRtcBoolOptional Class Reference

Inherits from NSObject
Declared in AgoraObjects.h

  isEmpty

Checks if no value

@property (nonatomic, readonly) BOOL isEmpty

Declared In

AgoraObjects.h

  hasValue

Checks if has value

@property (nonatomic, readonly) BOOL hasValue

Declared In

AgoraObjects.h

  value

Extracts data from optional. Will assert if it’s nil!

@property (nonatomic, readonly) BOOL value

Declared In

AgoraObjects.h

+ empty

Returns empty optional

+ (nonnull instancetype)empty

Return Value

AgoraRtcBoolOptional.empty

Declared In

AgoraObjects.h

+ of:

  • Creates optional with value
+ (nonnull instancetype)of:(BOOL)aValue

Discussion

  • @param aValue double value storage for optional double
  • @return guaranteed nonnull optional

Declared In

AgoraObjects.h