AWFMapPermissions
Objective-C
@interface AWFMapPermissions : NSObject
Swift
class AWFMapPermissions : NSObject
An AWFMapPermissions
object contains the access permissions when interacting with the Aeris Maps API.
-
Initializes and returns an
AWFApiPermissions
instance using the specified access permissions data.Declaration
Objective-C
- (nonnull instancetype)initWithDictionary:(nonnull NSDictionary *)dictionary;
Swift
init(dictionary: [AnyHashable : Any])
Parameters
dictionary
The access permissions dictionary to use
Return Value
A permissions object initialized with the specified permissions dictionary
-
Returns a Boolean value indicating whether or not the configured permissions allow access to the Aeris Maps API.
Declaration
Objective-C
- (BOOL)hasAccess;
Swift
func hasAccess() -> Bool
-
Returns a Boolean value indicating whether or not the configured permissions allow access to the specified layer type.
Declaration
Objective-C
- (BOOL)hasAccessToLayer:(nonnull NSString *)layerType;
Swift
func hasAccess(toLayer layerType: String) -> Bool
Parameters
layerType
The layer type string to check access for
-
Returns a Boolean value indicating whether or not the configured permissions allow access to image blend modes.
Declaration
Objective-C
- (BOOL)hasAccessToBlendModes;
Swift
func hasAccessToBlendModes() -> Bool
-
Returns a Boolean value indicating whether or not the configured permissions allow access to image filters.
Declaration
Objective-C
- (BOOL)hasAccessToFilters;
Swift
func hasAccessToFilters() -> Bool
-
Returns a Boolean value indicating whether or not the configured permissions allow the use of data modifiers.
Declaration
Objective-C
- (BOOL)canUseModifiers;
Swift
func canUseModifiers() -> Bool
-
Returns a Boolean value indicating whether or not the configured permissions allow modifying image opacity.
Declaration
Objective-C
- (BOOL)canUseOpacity;
Swift
func canUseOpacity() -> Bool
-
Returns the maximum image size allowed by the configured permissions.
Declaration
Objective-C
- (CGSize)maxImageSize;
Swift
func maxImageSize() -> CGSize
-
Returns the maximum number of layers allowed in a single image request.
Declaration
Objective-C
- (NSInteger)maxLayers;
Swift
func maxLayers() -> Int