BDPSessionDelegate

Deprecated

First deprecated in 15.4.0 - initialization related delagate callbacks are now returned in completion callbacks. Please refer to BDLocationManager.-initializeWithProjectId:completion:

@protocol BDPSessionDelegate <NSObject>

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

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

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.

  • Deprecated

    First deprecated in 15.4.0 - initialization related delegate callbacks are now returned in completion callbacks. Please refer to BDLocationManager.-initializeWithProjectId:completion:

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

    Declaration

    Objective-C

    - (void)willAuthenticateWithApiKey:(NSString *)apiKey;
  • Deprecated

    First deprecated in 15.4.0 - initialization related delegate callbacks are now returned in completion callbacks. Please refer to BDLocationManager.-initializeWithProjectId:completion:

    This method indicates that authentication was successful and a Point session has started.

    Declaration

    Objective-C

    - (void)authenticationWasSuccessful;
  • Deprecated

    First deprecated in 15.4.0 - initialization related delegate callbacks are now returned in completion callbacks. Please refer to BDLocationManager.-initializeWithProjectId:completion:

    Indicates that connection was successful with the server but the session was denied for the reason provided.

    Declaration

    Objective-C

    - (void)authenticationWasDeniedWithReason:(NSString *)reason;
  • Deprecated

    First deprecated in 15.4.0 - initialization related delegate callbacks are now returned in completion callbacks. Please refer to BDLocationManager.-initializeWithProjectId:completion:

    Indicates a communication error with the server.

    Declaration

    Objective-C

    - (void)authenticationFailedWithError:(NSError *)error;
  • Deprecated

    First deprecated in 15.4.0 - session ending delegate callbacks are now returned in reset’s completion callbacks. Please refer to BDLocationManager.-resetWithCompletion:

    This method is called after an authenticated Point session has ended.

    Declaration

    Objective-C

    - (void)didEndSession;
  • Deprecated

    First deprecated in 15.4.0 - session ending delegate callbacks are now returned in reset’s completion callbacks. Please refer to BDLocationManager.-resetWithCompletion:

    This method is called if an authenticated Point session ends unexpectedly.

    Declaration

    Objective-C

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

    Parameters

    error

    object delivered here is intended for development logging purposes and is not intended to be seen by your application’s users.