FMLiveSwitchStreamDirectionHelper Class Reference

Class containing utility methods to manipulate FMLiveSwitchStreamDirection. More...

Instance Methods

(instancetype) - init
 

Class Methods

(FMLiveSwitchStreamDirection) + directionFromStringWithDirectionString:
 Converts string representations of stream directions to FMLiveSwitchStreamDirection. More...
 
(NSString *) + directionToStringWithDirection:
 Obtains the string representation of FMLiveSwitchStreamDirection. More...
 
(bool) + isReceiveDisabledWithDirection:
 Checks the receive flag. More...
 
(bool) + isReceiveDisabledWithDirectionString:
 Checks the receive flag. More...
 
(bool) + isReceiveOnlyWithDirectionString:
 Checks receive only. More...
 
(bool) + isSendDisabledWithDirection:
 Checks the send flag. More...
 
(bool) + isSendDisabledWithDirectionString:
 Checks the send flag. More...
 
(bool) + isSendOnlyWithDirectionString:
 Checks send only. More...
 
(FMLiveSwitchStreamDirection) + setReceiveDisabledWithDirection:disabled:
 Sets the receive flag. More...
 
(NSString *) + setReceiveDisabledWithDirectionString:disabled:
 Sets the receive flag. More...
 
(FMLiveSwitchStreamDirection) + setSendDisabledWithDirection:disabled:
 Sets the send flag. More...
 
(NSString *) + setSendDisabledWithDirectionString:disabled:
 Sets the send flag. More...
 
(FMLiveSwitchStreamDirectionHelper *) + streamDirectionHelper
 
(FMLiveSwitchStreamDirection) + toggleReceiveWithDirection:
 Toggles the receive flag. More...
 
(NSString *) + toggleReceiveWithDirectionString:
 Toggles the receive flag. More...
 
(FMLiveSwitchStreamDirection) + toggleSendWithDirection:
 Toggles the send flag. More...
 
(NSString *) + toggleSendWithDirectionString:
 Toggles the send flag. More...
 

Detailed Description

Class containing utility methods to manipulate FMLiveSwitchStreamDirection.

Method Documentation

◆ directionFromStringWithDirectionString:

+ (FMLiveSwitchStreamDirection) directionFromStringWithDirectionString: (NSString *)  directionString

Converts string representations of stream directions to FMLiveSwitchStreamDirection.

Parameters
directionStringThe direction string.
Returns
The direction.

◆ directionToStringWithDirection:

+ (NSString*) directionToStringWithDirection: (FMLiveSwitchStreamDirection)  direction

Obtains the string representation of FMLiveSwitchStreamDirection.

Parameters
directionThe direction.
Returns
The direction string.

◆ init

- (instancetype) init

◆ isReceiveDisabledWithDirection:

+ (bool) isReceiveDisabledWithDirection: (FMLiveSwitchStreamDirection)  direction

Checks the receive flag.

Parameters
directionThe direction.
Returns
The receive flag.

◆ isReceiveDisabledWithDirectionString:

+ (bool) isReceiveDisabledWithDirectionString: (NSString *)  directionString

Checks the receive flag.

Parameters
directionStringThe direction string.
Returns
The receive flag.

◆ isReceiveOnlyWithDirectionString:

+ (bool) isReceiveOnlyWithDirectionString: (NSString *)  directionString

Checks receive only.

Parameters
directionString

◆ isSendDisabledWithDirection:

+ (bool) isSendDisabledWithDirection: (FMLiveSwitchStreamDirection)  direction

Checks the send flag.

Parameters
directionThe direction.
Returns
The send flag.

◆ isSendDisabledWithDirectionString:

+ (bool) isSendDisabledWithDirectionString: (NSString *)  directionString

Checks the send flag.

Parameters
directionStringThe direction string.
Returns
The send flag.

◆ isSendOnlyWithDirectionString:

+ (bool) isSendOnlyWithDirectionString: (NSString *)  directionString

Checks send only.

Parameters
directionString

◆ setReceiveDisabledWithDirection:disabled:

+ (FMLiveSwitchStreamDirection) setReceiveDisabledWithDirection: (FMLiveSwitchStreamDirection)  direction
disabled: (bool)  disabled 

Sets the receive flag.

Parameters
directionThe direction.
disabledWhether to disable the receive flag.
Returns
The new direction.

◆ setReceiveDisabledWithDirectionString:disabled:

+ (NSString*) setReceiveDisabledWithDirectionString: (NSString *)  directionString
disabled: (bool)  disabled 

Sets the receive flag.

Parameters
directionStringThe direction string.
disabledWhether to disable the receive flag.
Returns
The new direction.

◆ setSendDisabledWithDirection:disabled:

+ (FMLiveSwitchStreamDirection) setSendDisabledWithDirection: (FMLiveSwitchStreamDirection)  direction
disabled: (bool)  disabled 

Sets the send flag.

Parameters
directionThe direction.
disabledWhether to disable the send flag.
Returns
The new direction.

◆ setSendDisabledWithDirectionString:disabled:

+ (NSString*) setSendDisabledWithDirectionString: (NSString *)  directionString
disabled: (bool)  disabled 

Sets the send flag.

Parameters
directionStringThe direction string.
disabledWhether to disable the send flag.
Returns
The new direction.

◆ streamDirectionHelper

+ (FMLiveSwitchStreamDirectionHelper*) streamDirectionHelper

◆ toggleReceiveWithDirection:

+ (FMLiveSwitchStreamDirection) toggleReceiveWithDirection: (FMLiveSwitchStreamDirection)  direction

Toggles the receive flag.

Parameters
directionThe direction.
Returns
The new direction.

◆ toggleReceiveWithDirectionString:

+ (NSString*) toggleReceiveWithDirectionString: (NSString *)  directionString

Toggles the receive flag.

Parameters
directionStringThe direction string.
Returns
The new direction.

◆ toggleSendWithDirection:

+ (FMLiveSwitchStreamDirection) toggleSendWithDirection: (FMLiveSwitchStreamDirection)  direction

Toggles the send flag.

Parameters
directionThe direction.
Returns
The new direction.

◆ toggleSendWithDirectionString:

+ (NSString*) toggleSendWithDirectionString: (NSString *)  directionString

Toggles the send flag.

Parameters
directionStringThe direction string.
Returns
The new direction.