BDPSessionDelegate

@protocol BDPSessionDelegate <NSObject>

@brief Defines a delegate for handling Point SDK‘s session related callbacks

Point SDK needs to authenticate with Point Access to function. Applications must observe the correct authentication lifecycle when using Point SDK features, as documented.

Authentication state changes are most simply observed via the KVO-compliant BDLocationManager.sessionDelegate.authenticationState property.

For richer information about the authentication lifecycle, applications may optionally assign an implementation of this protocol to the sessionDelegate property of the shared BDLocationManager instance.

@copyright Bluedot Innovation

  • This method is called when an authentication request has been made to initiate a Point session.

    Declaration

    Objective-C

    - (void)willAuthenticateWithApiKey:(NSString *)apiKey;
  • This method indicates that authentication was successful and a Point session has started.

    Declaration

    Objective-C

    - (void)authenticationWasSuccessful;
  • Indicates that connection was successful with the server but the session was denied for the reason provided.

    Declaration

    Objective-C

    - (void)authenticationWasDeniedWithReason:(NSString *)reason;
  • Indicates a communication error with the server.

    Declaration

    Objective-C

    - (void)authenticationFailedWithError:(NSError *)error;
  • This method is called after an authenticated Point session has ended.

    Declaration

    Objective-C

    - (void)didEndSession;
  • This method is called if an authenticated Point session ends unexpectedly. Details from NSError objects delivered here are intended for development logging purposes and are not intended to be seen by your application’s users.

    Declaration

    Objective-C

    - (void)didEndSessionWithError:(NSError *)error;