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

    message

    Identifier of the message

    data

    Optional 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

    message

    Identifier of the message

    data

    Optional data of the message as string (Can be a serialized object)