Android SDK Version
- AccessToken
- AccessToken.AccessTokenCreationCallback
- AccessToken.AccessTokenRefreshCallback
- AccessTokenManager
- AccessTokenSource
- AccessTokenTracker
- AddressFilterManager
- All
- AppEvent
- AppEventsConstants
- AppEventsLogger
- AppEventsLogger.FlushBehavior
- AppEventsLogger.ProductAvailability
- AppEventsLogger.ProductCondition
- AppEventsManager
- AppGroupCreationContent
- AppGroupCreationContent.AppGroupPrivacy
- AppGroupCreationContent.Builder
- AppInviteContent
- AppInviteContent.Builder
- AppInviteContent.Builder.Destination
- AppInviteDialog
- AppInviteDialog.Result
- AppLinkData
- AppLinkData.CompletionHandler
- AppLinks
- CallbackManager
- CallbackManager.Factory
- CameraEffectArguments
- CameraEffectArguments.Builder
- CameraEffectTextures
- CameraEffectTextures.Builder
- CodelessLoggingEventListener
- CodelessLoggingEventListener.AutoLoggingOnClickListener
- CodelessLoggingEventListener.AutoLoggingOnItemClickListener
- CodelessManager
- Common
- Core
- CreateAppGroupDialog
- CreateAppGroupDialog.Result
- CurrentAccessTokenExpirationBroadcastReceiver
- CurrentPlaceFeedbackRequestParams
- CurrentPlaceFeedbackRequestParams.Builder
- CurrentPlaceRequestParams
- CurrentPlaceRequestParams.Builder
- CurrentPlaceRequestParams.ConfidenceLevel
- CurrentPlaceRequestParams.ScanMode
- CustomTabActivity
- CustomTabLoginMethodHandler
- CustomTabMainActivity
- DefaultAudience
- DeviceAuthDialog
- DeviceLoginButton
- DeviceLoginManager
- DeviceShareButton
- DeviceShareDialog
- DeviceShareDialog.Result
- EventDeactivationManager
- FacebookActivity
- FacebookAppLinkResolver
- FacebookAuthorizationException
- FacebookBroadcastReceiver
- FacebookButtonBase
- FacebookCallback
- FacebookContentProvider
- FacebookDialog
- FacebookDialogException
- FacebookException
- FacebookGraphResponseException
- FacebookOperationCanceledException
- FacebookRequestError
- FacebookRequestError.Category
- FacebookSdk
- FacebookSdk.InitializeCallback
- FacebookSdkNotInitializedException
- FacebookServiceException
- FlushResult
- GameRequestContent
- GameRequestContent.ActionType
- GameRequestContent.Builder
- GameRequestContent.Filters
- GameRequestDialog
- GameRequestDialog.Result
- GraphRequest
- GraphRequest.Callback
- GraphRequest.GraphJSONArrayCallback
- GraphRequest.GraphJSONObjectCallback
- GraphRequest.OnProgressCallback
- GraphRequest.ParcelableResourceWithMimeType
- GraphRequestAsyncTask
- GraphRequestBatch
- GraphRequestBatch.Callback
- GraphRequestBatch.OnProgressCallback
- GraphResponse
- GraphResponse.PagingDirection
- HttpMethod
- InternalAppEventsLogger
- JoinAppGroupDialog
- JoinAppGroupDialog.Result
- LikeView
- LikeView.AuxiliaryViewPosition
- LikeView.HorizontalAlignment
- LikeView.ObjectType
- LikeView.OnErrorListener
- LikeView.Style
- LoggingBehavior
- Login
- LoginBehavior
- LoginButton
- LoginButton.ToolTipMode
- LoginFragment
- LoginManager
- LoginResult
- LoginStatusCallback
- MessageDialog
- Messenger
- MessengerThreadParams
- MessengerThreadParams.Origin
- MessengerUtils
- MetadataIndexer
- Model
- ModelManager
- PlaceFields
- PlaceInfoRequestParams
- PlaceInfoRequestParams.Builder
- PlaceManager
- PlaceManager.LocationError
- PlaceManager.OnRequestReadyCallback
- Places
- PlaceSearchRequestParams
- PlaceSearchRequestParams.Builder
- Profile
- ProfileManager
- ProfilePictureView
- ProfilePictureView.OnErrorListener
- ProfileTracker
- RCTCodelessLoggingEventListener
- RCTCodelessLoggingEventListener.AutoLoggingOnTouchListener
- RestrictiveDataManager
- SendButton
- Share
- ShareApi
- ShareBuilder
- ShareButton
- ShareButtonBase
- ShareCameraEffectContent
- ShareCameraEffectContent.Builder
- ShareContent
- ShareContent.Builder
- ShareDialog
- ShareDialog.Mode
- ShareGraphRequest
- ShareHashtag
- ShareHashtag.Builder
- ShareLinkContent
- ShareLinkContent.Builder
- ShareMedia
- ShareMedia.Builder
- ShareMedia.Type
- ShareMediaContent
- ShareMediaContent.Builder
- ShareMessengerActionButton
- ShareMessengerActionButton.Builder
- ShareMessengerGenericTemplateContent
- ShareMessengerGenericTemplateContent.Builder
- ShareMessengerGenericTemplateContent.ImageAspectRatio
- ShareMessengerGenericTemplateElement
- ShareMessengerGenericTemplateElement.Builder
- ShareMessengerMediaTemplateContent
- ShareMessengerMediaTemplateContent.Builder
- ShareMessengerMediaTemplateContent.MediaType
- ShareMessengerOpenGraphMusicTemplateContent
- ShareMessengerOpenGraphMusicTemplateContent.Builder
- ShareMessengerURLActionButton
- ShareMessengerURLActionButton.Builder
- ShareMessengerURLActionButton.WebviewHeightRatio
- ShareModel
- ShareModelBuilder
- ShareOpenGraphAction
- ShareOpenGraphAction.Builder
- ShareOpenGraphContent
- ShareOpenGraphContent.Builder
- ShareOpenGraphObject
- ShareOpenGraphObject.Builder
- ShareOpenGraphValueContainer
- ShareOpenGraphValueContainer.Builder
- SharePhoto
- SharePhoto.Builder
- SharePhotoContent
- SharePhotoContent.Builder
- Sharer
- Sharer.Result
- ShareStoryContent
- ShareStoryContent.Builder
- ShareToMessengerParams
- ShareToMessengerParamsBuilder
- ShareVideo
- ShareVideo.Builder
- ShareVideoContent
- ShareVideoContent.Builder
- SuggestedEventsManager
- ToolTipPopup
- ToolTipPopup.Style
- UserDataStore
- Utils
- ViewIndexer
- ViewOnClickListener
- WebDialog
- java.lang.Object
- com.facebook.share.model.GameRequestContent.Builder
All Implemented Interfaces:
Enclosing class:
public static class GameRequestContent.Builder extends java.lang.Object implements ShareModelBuilder<GameRequestContent,GameRequestContent.Builder>
Builder class for a concrete instance of GameRequestContent
Method Summary
Modifier and Type | Method and Description |
---|---|
GameRequestContent | build() Builds the object. |
GameRequestContent.Builder | readFrom(GameRequestContent content) Reads the values from a ShareModel into the builder. |
GameRequestContent.Builder | setActionType(GameRequestContent.ActionType actionType) Sets the action type for this request |
GameRequestContent.Builder | setData(java.lang.String data) Sets optional data which can be used for tracking; maximum length is 255 characters. |
GameRequestContent.Builder | setFilters(GameRequestContent.Filters filters) Sets the filters for everybody/app users/non app users |
GameRequestContent.Builder | setMessage(java.lang.String message) Sets the message users receiving the request will see. |
GameRequestContent.Builder | setObjectId(java.lang.String objectId) Sets the open graph id of the object that action type will be performed on Only valid (and required) for ActionTypes SEND, ASKFOR |
GameRequestContent.Builder | setRecipients(java.util.List<java.lang.String> recipients) An array of user IDs, usernames or invite tokens of people to send request. |
GameRequestContent.Builder | setSuggestions(java.util.List<java.lang.String> suggestions) Sets a list of user ids suggested as request receivers |
GameRequestContent.Builder | setTitle(java.lang.String title) Sets an optional title for the dialog; maximum length is 50 characters. |
GameRequestContent.Builder | setTo(java.lang.String to) Deprecated. Replaced by setRecipients(List) |
Method Detail
setMessage
public GameRequestContent.Builder setMessage(java.lang.String message)
Sets the message users receiving the request will see. The maximum length is 60 characters.
Parameters:
message
- the messageReturns:
the builder
setTo
public GameRequestContent.Builder setTo(java.lang.String to)
Deprecated. Replaced by
setRecipients(List)
Sets the user ID or user name the request will be sent to. If this is not specified, a friend selector will be displayed and the user can select up to 50 friends.
Parameters:
to
- the id or user name to send the request toReturns:
the builder
setRecipients
public GameRequestContent.Builder setRecipients(java.util.List<java.lang.String> recipients)
An array of user IDs, usernames or invite tokens of people to send request. If this is not specified, a friend selector will be displayed and the user can select up to 50 friends. This is equivalent to the "to" parameter when using the web game request dialog.
Parameters:
recipients
- the list of user ids to send the request toReturns:
the builder
setData
public GameRequestContent.Builder setData(java.lang.String data)
Sets optional data which can be used for tracking; maximum length is 255 characters.
Parameters:
data
- the dataReturns:
the builder
setTitle
public GameRequestContent.Builder setTitle(java.lang.String title)
Sets an optional title for the dialog; maximum length is 50 characters.
Parameters:
title
- the titleReturns:
the builder
setActionType
public GameRequestContent.Builder setActionType(GameRequestContent.ActionType actionType)
Sets the action type for this request
setObjectId
public GameRequestContent.Builder setObjectId(java.lang.String objectId)
Sets the open graph id of the object that action type will be performed on Only valid (and required) for ActionTypes SEND, ASKFOR
setFilters
public GameRequestContent.Builder setFilters(GameRequestContent.Filters filters)
Sets the filters for everybody/app users/non app users
setSuggestions
public GameRequestContent.Builder setSuggestions(java.util.List<java.lang.String> suggestions)
Sets a list of user ids suggested as request receivers
build
public GameRequestContent build()
Description copied from interface:
ShareBuilder
Builds the object.
Specified by:
build
in interface ShareBuilder<GameRequestContent,GameRequestContent.Builder>
Returns:
The built object.
readFrom
public GameRequestContent.Builder readFrom(GameRequestContent content)
Description copied from interface:
ShareModelBuilder
Reads the values from a ShareModel into the builder.
Specified by:
Parameters:
content
- The source ShareModelReturns:
The builder.