本文整理匯總了Java中com.facebook.internal.Utility.putUri方法的典型用法代碼示例。如果您正苦於以下問題:Java Utility.putUri方法的具體用法?Java Utility.putUri怎麽用?Java Utility.putUri使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.facebook.internal.Utility
的用法示例。
在下文中一共展示了Utility.putUri方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createBaseParameters
import com.facebook.internal.Utility; //導入方法依賴的package包/類
private static Bundle createBaseParameters(ShareContent content, boolean dataErrorsFatal) {
Bundle params = new Bundle();
Utility.putUri(params, ShareConstants.CONTENT_URL, content.getContentUrl());
Utility.putNonEmptyString(params, ShareConstants.PLACE_ID, content.getPlaceId());
Utility.putNonEmptyString(params, ShareConstants.REF, content.getRef());
params.putBoolean(ShareConstants.DATA_FAILURES_FATAL, dataErrorsFatal);
List<String> peopleIds = content.getPeopleIds();
if (!Utility.isNullOrEmpty(peopleIds)) {
params.putStringArrayList(
ShareConstants.PEOPLE_IDS,
new ArrayList<String>(peopleIds));
}
return params;
}
示例2: createBaseParameters
import com.facebook.internal.Utility; //導入方法依賴的package包/類
private static Bundle createBaseParameters(ShareContent content, boolean dataErrorsFatal) {
Bundle params = new Bundle();
Utility.putUri(params, ShareConstants.LEGACY_LINK, content.getContentUrl());
Utility.putNonEmptyString(params, ShareConstants.LEGACY_PLACE_TAG, content.getPlaceId());
Utility.putNonEmptyString(params, ShareConstants.LEGACY_REF, content.getRef());
params.putBoolean(ShareConstants.LEGACY_DATA_FAILURES_FATAL, dataErrorsFatal);
List<String> peopleIds = content.getPeopleIds();
if (!Utility.isNullOrEmpty(peopleIds)) {
params.putStringArrayList(
ShareConstants.LEGACY_FRIEND_TAGS,
new ArrayList<>(peopleIds));
}
return params;
}
示例3: create
import com.facebook.internal.Utility; //導入方法依賴的package包/類
public static Bundle create(ShareLinkContent shareLinkContent) {
Bundle params = new Bundle();
Utility.putUri(
params,
ShareConstants.WEB_DIALOG_PARAM_HREF,
shareLinkContent.getContentUrl());
return params;
}
示例4: create
import com.facebook.internal.Utility; //導入方法依賴的package包/類
private static Bundle create(ShareLinkContent linkContent, boolean dataErrorsFatal) {
Bundle params = createBaseParameters(linkContent, dataErrorsFatal);
Utility.putNonEmptyString(params, ShareConstants.TITLE, linkContent.getContentTitle());
Utility.putNonEmptyString(
params, ShareConstants.DESCRIPTION, linkContent.getContentDescription());
Utility.putUri(params, ShareConstants.IMAGE_URL, linkContent.getImageUrl());
return params;
}
示例5: create
import com.facebook.internal.Utility; //導入方法依賴的package包/類
private static Bundle create(ShareLinkContent linkContent, boolean dataErrorsFatal) {
Bundle params = createBaseParameters(linkContent, dataErrorsFatal);
Utility.putNonEmptyString(
params, ShareConstants.LEGACY_TITLE, linkContent.getContentTitle());
Utility.putNonEmptyString(
params, ShareConstants.LEGACY_DESCRIPTION, linkContent.getContentDescription());
Utility.putUri(params, ShareConstants.LEGACY_IMAGE, linkContent.getImageUrl());
return params;
}