本文整理匯總了Java中com.facebook.internal.Utility.FetchedAppSettings方法的典型用法代碼示例。如果您正苦於以下問題:Java Utility.FetchedAppSettings方法的具體用法?Java Utility.FetchedAppSettings怎麽用?Java Utility.FetchedAppSettings使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.facebook.internal.Utility
的用法示例。
在下文中一共展示了Utility.FetchedAppSettings方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: checkNuxSettings
import com.facebook.internal.Utility; //導入方法依賴的package包/類
private void checkNuxSettings() {
if (nuxMode == ToolTipMode.DISPLAY_ALWAYS) {
String nuxString = getResources().getString(R.string.com_facebook_tooltip_default);
displayNux(nuxString);
} else {
// kick off an async request
final String appId = Utility.getMetadataApplicationId(getContext());
AsyncTask<Void, Void, FetchedAppSettings> task = new AsyncTask<Void, Void, Utility.FetchedAppSettings>() {
@Override
protected FetchedAppSettings doInBackground(Void... params) {
FetchedAppSettings settings = Utility.queryAppSettings(appId, false);
return settings;
}
@Override
protected void onPostExecute(FetchedAppSettings result) {
showNuxPerSettings(result);
}
};
task.execute((Void[])null);
}
}
示例2: getErrorClassification
import com.facebook.internal.Utility; //導入方法依賴的package包/類
static synchronized FacebookRequestErrorClassification getErrorClassification() {
FacebookRequestErrorClassification errorClassification;
Utility.FetchedAppSettings appSettings =
Utility.getAppSettingsWithoutQuery(FacebookSdk.getApplicationId());
if (appSettings == null) {
return FacebookRequestErrorClassification.getDefaultErrorClassification();
}
return appSettings.getErrorClassification();
}