MMKModel

@interface MMKModel : NSObject

describes model presentation of PlacemarkMapObject

Summary

Instance methods

- (void)setDataWithGltfDataProvider:
            (nonnull id<MMKDataProviderWithId>)gltfDataProvider
                           callback:(nonnull MMKCallback)callback;

Sets gltf data provider

Properties

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    MMKModelStyle *modelStyle;

describes style of the model

@property (nonatomic, readonly, getter=isValid) BOOL valid;
Tells if this object is valid or no

Instance methods

setDataWithGltfDataProvider:callback:

- (void)setDataWithGltfDataProvider:
            (nonnull id<MMKDataProviderWithId>)gltfDataProvider
                           callback:(nonnull MMKCallback)callback;

Sets gltf data provider.

The class maintains a strong reference to the object in the 'gltfDataProvider' parameter until it (the class) is invalidated.

Parameters

onFinished

Called when the model is loaded.


Properties

modelStyle

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    MMKModelStyle *modelStyle;

describes style of the model


valid

@property (nonatomic, readonly, getter=isValid) BOOL valid;

Tells if this object is valid or no. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.