AgoraRtcDoubleOptional 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) double value

Declared In

AgoraObjects.h

+ empty

Returns empty optional

+ (nonnull instancetype)empty

Return Value

AgoraRtcUIntOptional.empty

Declared In

AgoraObjects.h

+ of:

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

Discussion

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

Declared In

AgoraObjects.h