|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.facebook.Settings
public final class Settings
Allows some customization of sdk behavior.
Constructor Summary | |
---|---|
Settings()
|
Method Summary | |
---|---|
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(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(Context context,
String applicationId)
Manually publish install attribution to the Facebook graph. |
static Response |
publishInstallAndWaitForResponse(Context context,
String applicationId)
Manually publish install attribution to the Facebook graph. |
static void |
publishInstallAsync(Context context,
String applicationId)
Manually publish install attribution to the Facebook graph. |
static void |
publishInstallAsync(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Settings()
Method Detail |
---|
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 check
public static Executor getExecutor()
public static void setExecutor(Executor executor)
executor
- the Executor to use; must not be null.public static void publishInstallAsync(Context context, String applicationId)
context
- the current ContextapplicationId
- the fb application being published.public static void publishInstallAsync(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(Context context, String applicationId)
context
- the current ContextapplicationId
- the fb application being published.
public static Response publishInstallAndWaitForResponse(Context context, String applicationId)
context
- the current ContextapplicationId
- the fb application being published.
public static String getAttributionId(ContentResolver contentResolver)
public static String getSdkVersion()
public static String getMigrationBundle()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |