BMPWarningEvent

Objective-C


@interface BMPWarningEvent : BMPPlayerEvent

Swift

class WarningEvent : PlayerEvent

See BMPPlayerListener.h for more information on this event.

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSUInteger code

    Swift

    var code: UInt { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *message

    Swift

    var message: String { get }
  • Creates a new BMPWarningEvent based on the given code and message. Supported codes are defined in BMPWarningCodes.h.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithCode:(NSUInteger)code
                                 message:(nonnull NSString *)message;

    Swift

    init(code: UInt, message: String)

    Parameters

    code

    The code for this warning.

    message

    The message for this warning.

    Return Value

    A new warning event initialized with the given code and message.