blob: c93b323b0654f38a49e25e57e3deb8a819e094df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
typedef NSString *MBXAccountsSKUID NS_TYPED_ENUM;
FOUNDATION_EXTERN const MBXAccountsSKUID MBXAccountsSKUIDMapsUser;
FOUNDATION_EXTERN const MBXAccountsSKUID MBXAccountsSKUIDNavigationUser;
FOUNDATION_EXTERN const MBXAccountsSKUID MBXAccountsSKUIDNavigationSession;
@interface MBXSKUToken : NSObject
/**
Activates a specific SKU identifier.
Defaults to `MBXAccountsSKUIDMapsUser`.
See https://www.mapbox.com/pricing/ for more information
*/
+ (void)activateSKUID:(MBXAccountsSKUID)skuId;
/**
Resets the current session. Calling this method has no effect unless the type
of the SKU id is of kind session.
*/
+ (void)resetSession;
/**
Returns the current SKU token. `+[MBXSKUToken activateSKUID:]` must be called
before accessing this property unless an `MBXAccountsSKUIDMapsUser` token is preferred.
*/
@property (class, nonatomic, readonly) NSString *skuToken;
@end
NS_ASSUME_NONNULL_END
|