MBMRuntimeStylingOptions
@interface MBMRuntimeStylingOptions : NSObject
Interface for applying changes to the style runtime.
-
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)initWithSourcesCallback:(nullable MBMStyleManagerCallback)sourcesCallback layersCallback:(nullable MBMStyleManagerCallback)layersCallback imagesCallback:(nullable MBMStyleManagerCallback)imagesCallback completedCallback:(nullable MBMStyleManagerCallback)completedCallback canceledCallback:(nullable MBMStyleManagerCallback)canceledCallback;
Swift
init(sourcesCallback: StyleManagerCallback?, layersCallback: StyleManagerCallback?, imagesCallback: StyleManagerCallback?, completedCallback: StyleManagerCallback?, canceledCallback: StyleManagerCallback? = nil)
-
Sets a callback that will be invoked when metadata for all sources is fetched so that source properties can be read and modified.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) MBMStyleManagerCallback sourcesCallback;
Swift
var sourcesCallback: StyleManagerCallback? { get }
-
Sets a callback that will be invoked when:
- root properties of the style can be read and modified
- layers can be added or removed and their properties are accessible
- list of sources can be checked
Declaration
Objective-C
@property (nonatomic, readonly, nullable) MBMStyleManagerCallback layersCallback;
Swift
var layersCallback: StyleManagerCallback? { get }
-
Sets a callback that will be invoked when style sprite sheets are parsed and user can read list of available images, add new ones or update exising.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) MBMStyleManagerCallback imagesCallback;
Swift
var imagesCallback: StyleManagerCallback? { get }
-
Sets a callback that will be invoked when style document is fully parsed as well as it’s dependencies (similar to StyleLoaded event).
Declaration
Objective-C
@property (nonatomic, readonly, nullable) MBMStyleManagerCallback completedCallback;
Swift
var completedCallback: StyleManagerCallback? { get }
-
Sets a callback that will be invoked when style document loading is canceled.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) MBMStyleManagerCallback canceledCallback;
Swift
var canceledCallback: StyleManagerCallback? { get }