public final class Settings extends Object
| Constructor and Description |
|---|
Settings() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addLoggingBehavior(LoggingBehavior behavior)
Certain logging behaviors are available for debugging beyond those that should be
enabled in production.
|
static void |
clearLoggingBehaviors()
Certain logging behaviors are available for debugging beyond those that should be
enabled in production.
|
static String |
getAttributionId(android.content.ContentResolver contentResolver)
Acquire the current attribution id from the facebook app.
|
static Executor |
getExecutor()
Returns the Executor used by the SDK for non-AsyncTask background work.
|
static Set<LoggingBehavior> |
getLoggingBehaviors()
Certain logging behaviors are available for debugging beyond those that should be
enabled in production.
|
static String |
getMigrationBundle()
Gets the current Facebook migration bundle string; this string can be passed to Graph API
endpoints to specify a set of platform migrations that are explicitly turned on or off for
that call, in order to ensure compatibility between a given version of the SDK and the
Graph API.
|
static String |
getSdkVersion()
Gets the current version of the Facebook SDK for Android as a string.
|
static boolean |
getShouldAutoPublishInstall()
Gets whether opening a Session should automatically publish install attribution to the Facebook graph.
|
static boolean |
isLoggingBehaviorEnabled(LoggingBehavior behavior)
Certain logging behaviors are available for debugging beyond those that should be
enabled in production.
|
static boolean |
publishInstallAndWait(android.content.Context context,
String applicationId)
Manually publish install attribution to the Facebook graph.
|
static Response |
publishInstallAndWaitForResponse(android.content.Context context,
String applicationId)
Manually publish install attribution to the Facebook graph.
|
static void |
publishInstallAsync(android.content.Context context,
String applicationId)
Manually publish install attribution to the Facebook graph.
|
static void |
publishInstallAsync(android.content.Context context,
String applicationId,
Request.Callback callback)
Manually publish install attribution to the Facebook graph.
|
static void |
removeLoggingBehavior(LoggingBehavior behavior)
Certain logging behaviors are available for debugging beyond those that should be
enabled in production.
|
static void |
setExecutor(Executor executor)
Sets the Executor used by the SDK for non-AsyncTask background work.
|
static void |
setShouldAutoPublishInstall(boolean shouldAutoPublishInstall)
Sets whether opening a Session should automatically publish install attribution to the Facebook graph.
|
public static final Set<LoggingBehavior> getLoggingBehaviors()
public static final void addLoggingBehavior(LoggingBehavior behavior)
behavior - The LoggingBehavior to enablepublic static final void removeLoggingBehavior(LoggingBehavior behavior)
behavior - The LoggingBehavior to disablepublic static final void clearLoggingBehaviors()
public static final boolean isLoggingBehaviorEnabled(LoggingBehavior behavior)
behavior - The LoggingBehavior to checkpublic static Executor getExecutor()
public static void setExecutor(Executor executor)
executor - the Executor to use; must not be null.public static void publishInstallAsync(android.content.Context context,
String applicationId)
context - the current ContextapplicationId - the fb application being published.public static void publishInstallAsync(android.content.Context context,
String applicationId,
Request.Callback callback)
context - the current ContextapplicationId - the fb application being published.callback - a callback to invoke with a Response object, carrying the server response, or an error.public static void setShouldAutoPublishInstall(boolean shouldAutoPublishInstall)
shouldAutoPublishInstall - true to automatically publish, false to notpublic static boolean getShouldAutoPublishInstall()
public static boolean publishInstallAndWait(android.content.Context context,
String applicationId)
context - the current ContextapplicationId - the fb application being published.public static Response publishInstallAndWaitForResponse(android.content.Context context, String applicationId)
context - the current ContextapplicationId - the fb application being published.public static String getAttributionId(android.content.ContentResolver contentResolver)
public static String getSdkVersion()
public static String getMigrationBundle()
Copyright © 2013. All Rights Reserved.