EMTokenManager Protocol Reference

Conforms to NSObject
Declared in EMTokenManager.h

Overview

The manager to create and retrieve tokens.

– tokenNames: required method

Returns the names of available tokens. An empty set is returned if no token is found.

- (NSSet<NSString*> *)tokenNames:(NSError **)error

Parameters

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 NULL.

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 **)error

Parameters

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 NULL.

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 **)error

Parameters

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 NULL.

Return Value

YES if it existed and was removed, otherwise NO.

Declared In

EMTokenManager.h