Package 

Object AuthActivity.Companion

    • Method Detail

      • makeIntent

        @Deprecated(message = Use Methods in com.dropbox.core.android.Auth, This will be removed in future versions.) final Intent makeIntent(Context context, String appKey, String webHost, String apiType)

        Create an intent which can be sent to this activity to start OAuth 2 authentication.

        Parameters:
        context - the source context
        appKey - the consumer key for the app
        webHost - the host to use for web authentication, or null for the default
        apiType - an identifier for the type of API being supported, or null for the default
      • makeIntent

        @Deprecated(message = Use Methods in com.dropbox.core.android.Auth. This will be removed in future versions.) final Intent makeIntent(Context context, String appKey, String desiredUid, Array<String> alreadyAuthedUids, String sessionId, String webHost, String apiType)

        Create an intent which can be sent to this activity to start OAuth 2 authentication.

        Parameters:
        context - the source context
        appKey - the consumer key for the app
        desiredUid - Encourage user to authenticate account defined by this uid.
        alreadyAuthedUids - Array of any other uids currently authenticated with this app.
        sessionId - The SESSION_ID Extra on an OpenWith intent.
        webHost - the host to use for web authentication, or null for the default
        apiType - an identifier for the type of API being supported, or null for the default
      • checkAppBeforeAuth

        @Deprecated(message = Use Methods in com.dropbox.core.android.Auth, This will be removed in future versions.) final Boolean checkAppBeforeAuth(Context context, String appKey, Boolean alertUser)

        Check's the current app's manifest setup for authentication. If the manifest is incorrect, an exception will be thrown. If another app on the device is conflicting with this one, the user will (optionally) be alerted and false will be returned.

        Parameters:
        context - the app context
        appKey - the consumer key for the app
        alertUser - whether to alert the user for the case where multiple apps are conflicting.
      • getACTION_AUTHENTICATE_V1

         final String getACTION_AUTHENTICATE_V1()

        The Android action which the official Dropbox app will accept to authenticate a user. You won't ever have to use this.

      • getACTION_AUTHENTICATE_V2

         final String getACTION_AUTHENTICATE_V2()

        The Android action which the official Dropbox app will accept to authenticate a user. You won't ever have to use this.

      • getAUTH_VERSION

         final Integer getAUTH_VERSION()

        The version of the API for the web-auth callback with token (not the initial auth request).

      • getAUTH_PATH_CONNECT

         final String getAUTH_PATH_CONNECT()

        The path for a successful callback with token (not the initial auth request).