EMTokenManager Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | EMTokenManager.h |
– tokenNames:
required method
Returns the names of available tokens. An empty set is returned if no token is found.
- (NSSet<NSString*> *)tokenNames:(NSError **)errorParameters
error |
If an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in |
|---|
Return Value
The available token names as a set of NSString.
Declared In
EMTokenManager.h
– removeTokenWithName:error:
required method
Removes an existing token.
- (BOOL)removeTokenWithName:(NSString *)name error:(NSError **)errorParameters
name |
The token name. |
|---|---|
error |
If an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in |
Return Value
YES if it existed and was removed, otherwise NO.
Declared In
EMTokenManager.h
– removeToken:error:
required method
Removes an existing token.
- (BOOL)removeToken:(id<EMToken>)token error:(NSError **)errorParameters
token |
The token to remove |
|---|---|
error |
If an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in |
Return Value
YES if it existed and was removed, otherwise NO.
Declared In
EMTokenManager.h