public class DbxOfficialAppConnector
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DbxOfficialAppConnector.DbxOfficialAppInstallInfo |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_DBXC_EDIT |
static java.lang.String |
ACTION_DBXC_VIEW |
static java.lang.String |
ACTION_SHOW_DROPBOX_PREVIEW |
static java.lang.String |
ACTION_SHOW_UPGRADE |
static java.lang.String |
EXTRA_CALLING_PACKAGE |
static java.lang.String |
EXTRA_DROPBOX_PATH |
static java.lang.String |
EXTRA_DROPBOX_READ_ONLY |
static java.lang.String |
EXTRA_DROPBOX_REV |
static java.lang.String |
EXTRA_DROPBOX_SESSION_ID |
static java.lang.String |
EXTRA_DROPBOX_UID |
protected java.lang.String |
uid
uid associated with this DbxOfficialAppConnector
|
Constructor and Description |
---|
DbxOfficialAppConnector(java.lang.String uid)
Construct DbxOfficialAppConnector
|
Modifier and Type | Method and Description |
---|---|
protected void |
addExtrasToIntent(android.content.Context context,
android.content.Intent intent)
Add uid information to an explicit intent directed to DropboxApp
|
static android.content.Intent |
generateOpenWithIntentFromUtmContent(java.lang.String UtmContent)
Decodes a Google Play Campaign attribution utm_content field that was generated by Dropbox
OpenWith flow.
|
static android.content.Intent |
getDropboxPlayStoreIntent() |
android.content.Intent |
getPreviewFileIntent(android.content.Context context,
java.lang.String path,
java.lang.String lastRev)
Display the DropboxApp's preview of file located at path This function should only be called
if file was opened through DropboxAPI.
|
android.content.Intent |
getUpgradeAccountIntent(android.content.Context context) |
static boolean |
isAnySignedIn(android.content.Context context) |
static DbxOfficialAppConnector.DbxOfficialAppInstallInfo |
isInstalled(android.content.Context context) |
boolean |
isSignedIn(android.content.Context context) |
protected android.content.Intent |
launchDropbox(android.content.Context context) |
public static final java.lang.String ACTION_SHOW_UPGRADE
public static final java.lang.String EXTRA_DROPBOX_UID
public static final java.lang.String EXTRA_CALLING_PACKAGE
public static final java.lang.String ACTION_DBXC_EDIT
public static final java.lang.String ACTION_DBXC_VIEW
public static final java.lang.String ACTION_SHOW_DROPBOX_PREVIEW
public static final java.lang.String EXTRA_DROPBOX_PATH
public static final java.lang.String EXTRA_DROPBOX_READ_ONLY
public static final java.lang.String EXTRA_DROPBOX_REV
public static final java.lang.String EXTRA_DROPBOX_SESSION_ID
protected java.lang.String uid
public DbxOfficialAppConnector(java.lang.String uid) throws DropboxUidNotInitializedException
uid
- The extra that goes in an intent when returning from Dropbox auth to
provide the user's Dropbox UID.DropboxUidNotInitializedException
- when uid
is emptyprotected void addExtrasToIntent(android.content.Context context, android.content.Intent intent)
public static DbxOfficialAppConnector.DbxOfficialAppInstallInfo isInstalled(android.content.Context context)
public static boolean isAnySignedIn(android.content.Context context)
public static android.content.Intent getDropboxPlayStoreIntent()
public boolean isSignedIn(android.content.Context context)
protected android.content.Intent launchDropbox(android.content.Context context)
public android.content.Intent getUpgradeAccountIntent(android.content.Context context)
public android.content.Intent getPreviewFileIntent(android.content.Context context, java.lang.String path, java.lang.String lastRev)
You won't need to use this unless you are our official partner in openwith.
path
- path of file in authorized user's Dropbox to previewlastRev
- The revision of file user is seeing (as returned by
DropboxAPI.getFile/DropboxAPI.putFile)public static android.content.Intent generateOpenWithIntentFromUtmContent(java.lang.String UtmContent) throws DropboxParseException
You won't need to use this unless you are our official partner in openwith.
UtmContent
- GooglePlay utm content that has been urldecodedDropboxParseException
- if cannot produce Intent from UtmContent