MBMStyleDataLoaded


@interface MBMStyleDataLoaded : NSObject

The style data has been loaded. The event will be emitted once for each StyleDataLoadedType type during style loading. If a new style is set, events will be emitted again for the newly set style.

These events should not be used for runtime styling (using RuntimeStylingOptions is preferred), but only to check things like: loading time, loading progress of particular source, spritesheet, etc.

Note: The event may be emitted synchronously, for example, when setStyleJSON is used to load style.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)init NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)new NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithType:(MBMStyleDataLoadedType)type
                            timeInterval:(nonnull MBMEventTimeInterval *)timeInterval;

    Swift

    init(type: StyleDataLoadedType, timeInterval: MBMEventTimeInterval)
  • The type of loaded style data.

    Declaration

    Objective-C

    @property (nonatomic, readonly) MBMStyleDataLoadedType type;

    Swift

    var type: StyleDataLoadedType { get }
  • The timeInterval.begin is when style data begins loading, and the timeInterval.end is when style data is loaded.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) MBMEventTimeInterval *timeInterval;

    Swift

    var timeInterval: MBMEventTimeInterval { get }