BMPCustomMessageHandlerDelegate
Objective-C
@protocol BMPCustomMessageHandlerDelegate <NSObject>
Swift
protocol CustomMessageHandlerDelegate : NSObjectProtocol
Methods for handling received messages from Bitmovin Web UI
-
Gets called when a synchronous message was received from the Bitmovin Web UI
Declaration
Objective-C
- (nullable NSString *)receivedSynchronousMessage:(nonnull NSString *)message withData:(nullable NSString *)data;Swift
optional func receivedSynchronousMessage(_ message: String, withData data: String?) -> String?Parameters
messageIdentifier of the message
dataOptional data of the message as string (Can be a serialized object)
Return Value
Optional return value as string which will be propagates back to the JS counterpart
-
Gets called when a asynchronous message was received from the Bitmovin Web UI
Declaration
Objective-C
- (void)receivedAsynchronousMessage:(nonnull NSString *)message withData:(nullable NSString *)data;Swift
optional func receivedAsynchronousMessage(_ message: String, withData data: String?)Parameters
messageIdentifier of the message
dataOptional data of the message as string (Can be a serialized object)
BMPCustomMessageHandlerDelegate Protocol Reference