DefaultEndpointRegistrationManager Class Reference

Inherits from NSObject
Conforms to EndpointRegistrationManager
EndpointRegistrationProcessor
Declared in DefaultEndpointRegistrationManager.h
DefaultEndpointRegistrationManager.m

Other Methods

– getAttachedEndpointList

dictionary of attached endpoints <EndpointAccessToken, EndpointKeyHash> as key-value;

- (NSDictionary *)getAttachedEndpointList

Return Value

dictionary of attached endpoints <EndpointAccessToken, EndpointKeyHash> as key-value;

Declared In

DefaultEndpointRegistrationManager.h

Other Methods

– attachEndpointWithAccessToken:delegate:

Updates with new endpoint attach request.

- (void)attachEndpointWithAccessToken:(EndpointAccessToken *)accessToken delegate:(id<OnAttachEndpointOperationDelegate>)delegate

Parameters

accessToken

Access token of the attaching endpoint

delegate

Delegate to notify about result of the endpoint attaching

Discussion

Updates with new endpoint attach request.

OnAttachEndpointOperationDelegate is populated with EndpointKeyHash of an attached endpoint.

Declared In

EndpointRegistrationManager.h

– detachEndpointWithKeyHash:delegate:

Updates with new endpoint detach request

- (void)detachEndpointWithKeyHash:(EndpointKeyHash *)keyHash delegate:(id<OnDetachEndpointOperationDelegate>)delegate

Parameters

endpointKeyHash

Key hash of the detaching endpoint

delegate

Delegate to notify about result of the enpoint detaching

Discussion

Updates with new endpoint detach request

Declared In

EndpointRegistrationManager.h

– attachUserWithId:userAccessToken:delegate:

Creates user attach request using default verifier. Default verifier is selected during SDK generation. If there was no default verifier selected this method will throw runtime exception.

- (void)attachUserWithId:(NSString *)userExternalId userAccessToken:(NSString *)token delegate:(id<UserAttachDelegate>)delegate

Discussion

Creates user attach request using default verifier. Default verifier is selected during SDK generation. If there was no default verifier selected this method will throw runtime exception.

Declared In

EndpointRegistrationManager.h

– attachUserWithVerifierToken:userExternalId:userAccessToken:delegate:

Creates user attach request using specified verifier.

- (void)attachUserWithVerifierToken:(NSString *)userVerifierToken userExternalId:(NSString *)externalId userAccessToken:(NSString *)token delegate:(id<UserAttachDelegate>)delegate

Discussion

Creates user attach request using specified verifier.

Declared In

EndpointRegistrationManager.h

– onUpdateWithAttachResponses:detachResponses:userResponse:userAttachNotification:userDetachNotification:

Updates the manager’s state.

- (void)onUpdateWithAttachResponses:(NSArray *)attachResponses detachResponses:(NSArray *)detachResponses userResponse:(UserAttachResponse *)userResponse userAttachNotification:(UserAttachNotification *)attachNotification userDetachNotification:(UserDetachNotification *)detachNotification

Parameters

attachResponses

An array of attach responses.

detachResponses

An array of detach responses.

userResponse

The user attach response.

Discussion

Updates the manager’s state.

Declared In

EndpointRegistrationProcessor.h

– getAttachEndpointRequests

Retrieves current attach requests.

- (NSDictionary *)getAttachEndpointRequests

Return Value

Dictionary <NSNumber, EndpointAccessToken> (key-value) of access tokens.

Discussion

Retrieves current attach requests.

Declared In

EndpointRegistrationProcessor.h

– getDetachEndpointRequests

Retrieves current detach requests.

- (NSDictionary *)getDetachEndpointRequests

Return Value

Dictionary <NSNumber, EndpointKeyHash> (key-value) of endpoint key hashes.

Discussion

Retrieves current detach requests.

Declared In

EndpointRegistrationProcessor.h

– getUserAttachRequest

Retrieves the user attach request.

- (UserAttachRequest *)getUserAttachRequest

Return Value

The user attach request.

Discussion

Retrieves the user attach request.

Declared In

EndpointRegistrationProcessor.h

– isAttachedToUser

Checks if current endpoint is attached to user.

- (BOOL)isAttachedToUser

Return Value

YES if current endpoint is attached to any user, NO otherwise.

Discussion

Checks if current endpoint is attached to user.

Declared In

EndpointRegistrationManager.h

– setAttachDelegate:

Sets delegate for notifications when current endpoint is attached to user

- (void)setAttachDelegate:(id<AttachEndpointToUserDelegate>)delegate

Discussion

Sets delegate for notifications when current endpoint is attached to user

Declared In

EndpointRegistrationManager.h

– setDetachDelegate:

Sets delegate for notifications when current endpoint is detached from user

- (void)setDetachDelegate:(id<DetachEndpointFromUserDelegate>)delegate

Discussion

Sets delegate for notifications when current endpoint is detached from user

Declared In

EndpointRegistrationManager.h