Android SDK Version
All Implemented Interfaces:
com.facebook.share.ShareBuilder , com.facebook.share.model.ShareModelBuilder


public final class GameRequestContent.Builder
 implements ShareModelBuilder<GameRequestContent, GameRequestContent.Builder>
                    
Builder class for a concrete instance of GameRequestContent
Constructor Summary
ConstructorDescription
GameRequestContent.Builder()
Method Summary
Modifier and TypeMethodDescription
final GameRequestContent.BuildersetMessage(String message) Sets the message users receiving the request will see.
final GameRequestContent.BuildersetCta(String cta) Sets the cta users receiving the request will see.
final GameRequestContent.BuildersetTo(String to) Sets the user ID or user name the request will be sent to.
final GameRequestContent.BuildersetRecipients(List<String> recipients) An array of user IDs, usernames or invite tokens of people to send request.
final GameRequestContent.BuildersetData(String data) Sets optional data which can be used for tracking; maximum length is 255 characters.
final GameRequestContent.BuildersetTitle(String title) Sets an optional title for the dialog; maximum length is 50 characters.
final GameRequestContent.BuildersetActionType(GameRequestContent.ActionType actionType) Sets the action type for this request
final GameRequestContent.BuildersetObjectId(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
final GameRequestContent.BuildersetFilters(GameRequestContent.Filters filters) Sets the filters for everybody/app users/non app users
final GameRequestContent.BuildersetSuggestions(List<String> suggestions) Sets a list of user ids suggested as request receivers
GameRequestContentbuild() Builds the object.
GameRequestContent.BuilderreadFrom(GameRequestContent content) Reads the values from a ShareModel into the builder.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

GameRequestContent.Builder

GameRequestContent.Builder()
Method Detail

setMessage

 final GameRequestContent.BuildersetMessage(String message)
Sets the message users receiving the request will see. The maximum length is 60 characters.
Parameters:
message - the message

setCta

 final GameRequestContent.BuildersetCta(String cta)
Sets the cta users receiving the request will see. The maximum length is 10 characters.
Parameters:
cta - the cta for the message

setTo

@Deprecated(message = Replaced by {@link #setRecipients(List)}) final GameRequestContent.BuildersetTo(String to)
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 to

setRecipients

 final GameRequestContent.BuildersetRecipients(List<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 to

setData

 final GameRequestContent.BuildersetData(String data)
Sets optional data which can be used for tracking; maximum length is 255 characters.
Parameters:
data - the data

setTitle

 final GameRequestContent.BuildersetTitle(String title)
Sets an optional title for the dialog; maximum length is 50 characters.
Parameters:
title - the title

setActionType

 final GameRequestContent.BuildersetActionType(GameRequestContent.ActionType actionType)
Sets the action type for this request

setObjectId

 final GameRequestContent.BuildersetObjectId(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

 final GameRequestContent.BuildersetFilters(GameRequestContent.Filters filters)
Sets the filters for everybody/app users/non app users

setSuggestions

 final GameRequestContent.BuildersetSuggestions(List<String> suggestions)
Sets a list of user ids suggested as request receivers

build

GameRequestContentbuild()
Builds the object.

readFrom

GameRequestContent.BuilderreadFrom(GameRequestContent content)
Reads the values from a ShareModel into the builder.
Parameters:
content - The source ShareModel