NSValue(MGLRasterStyleLayerAdditions)
@interface NSValue (MGLRasterStyleLayerAdditions)
Methods for wrapping an enumeration value for a style layer attribute in an
MGLRasterStyleLayer
object and unwrapping its raw value.
-
Creates a new value object containing the given
MGLRasterResamplingMode
enumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLRasterResamplingMode: (MGLRasterResamplingMode)rasterResamplingMode;
Swift
convenience init(mglRasterResamplingMode rasterResamplingMode: MGLRasterResamplingMode)
Parameters
rasterResamplingMode
The value for the new object.
Return Value
A new value object that contains the enumeration value.
-
The
MGLRasterResamplingMode
enumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLRasterResamplingMode MGLRasterResamplingModeValue;
Swift
var mglRasterResamplingModeValue: MGLRasterResamplingMode { get }