public static class AppInviteContent.Builder extends java.lang.Object implements com.facebook.share.model.ShareModelBuilder<AppInviteContent,AppInviteContent.Builder>
| Modifier and Type | Class and Description |
|---|---|
static class |
AppInviteContent.Builder.Destination |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AppInviteContent |
build() |
AppInviteContent.Builder |
readFrom(AppInviteContent content) |
AppInviteContent.Builder |
setApplinkUrl(java.lang.String applinkUrl)
Sets the applink url that will be used for deep-linking
|
AppInviteContent.Builder |
setDestination(AppInviteContent.Builder.Destination destination) |
AppInviteContent.Builder |
setPreviewImageUrl(java.lang.String previewImageUrl)
Sets the preview image url for this invite.
|
AppInviteContent.Builder |
setPromotionDetails(java.lang.String promotionText,
java.lang.String promotionCode)
Sets promotion code and promotion text to be shown on sender and receiver flows
for app invites.
|
public AppInviteContent.Builder setApplinkUrl(java.lang.String applinkUrl)
applinkUrl - the applink urlpublic AppInviteContent.Builder setPreviewImageUrl(java.lang.String previewImageUrl)
previewImageUrl - url of the image that is going to be used as a preview for invitepublic AppInviteContent.Builder setPromotionDetails(java.lang.String promotionText, java.lang.String promotionCode)
promotionText - Promotion text to be shown on sender and receiver flows.
Promotion text has to be between 1 and 80 characters long.promotionCode - Promotion code to be shown on sender and receiver flows.
Promotion code is optional and has to be less than 10 characters
long. promotionText needs to be specified if promotionCode
is provided.public AppInviteContent.Builder setDestination(AppInviteContent.Builder.Destination destination)
public AppInviteContent build()
build in interface com.facebook.share.ShareBuilder<AppInviteContent,AppInviteContent.Builder>public AppInviteContent.Builder readFrom(AppInviteContent content)
readFrom in interface com.facebook.share.model.ShareModelBuilder<AppInviteContent,AppInviteContent.Builder>