Android SDK Version
  • java.lang.Object
    • com.facebook.share.model.AppGroupCreationContent.Builder
Enclosing class:

public static class AppGroupCreationContent.Builder
extends java.lang.Object
implements ShareModelBuilder<AppGroupCreationContent,AppGroupCreationContent.Builder>
Builder class for a concrete instance of AppGroupCreationContent
Constructor Summary
Constructor and Description
Builder() 
Method Summary
Modifier and TypeMethod and Description
AppGroupCreationContentbuild()
Builds the object.
AppGroupCreationContent.BuilderreadFrom(AppGroupCreationContent content)
Reads the values from a ShareModel into the builder.
AppGroupCreationContent.BuildersetAppGroupPrivacy(AppGroupCreationContent.AppGroupPrivacy privacy)
Sets the privacy for the group that will be created
AppGroupCreationContent.BuildersetDescription(java.lang.String description)
Sets the description of the group that will be created.
AppGroupCreationContent.BuildersetName(java.lang.String name)
Sets the name of the group that will be created.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

Builder

public Builder()
Method Detail

setName

public AppGroupCreationContent.Builder setName(java.lang.String name)
Sets the name of the group that will be created.
Parameters:
name - name of the group
Returns:
the builder

setDescription

public AppGroupCreationContent.Builder setDescription(java.lang.String description)
Sets the description of the group that will be created.
Parameters:
description - the description
Returns:
the builder

setAppGroupPrivacy

public AppGroupCreationContent.Builder setAppGroupPrivacy(AppGroupCreationContent.AppGroupPrivacy privacy)
Sets the privacy for the group that will be created
Parameters:
privacy - privacy of the group
Returns:
the builder

build

public AppGroupCreationContent build()
Description copied from interface: ShareBuilder
Builds the object.
Specified by:
Returns:
The built object.

readFrom

public AppGroupCreationContent.Builder readFrom(AppGroupCreationContent content)
Description copied from interface: ShareModelBuilder
Reads the values from a ShareModel into the builder.
Specified by:
Parameters:
content - The source ShareModel
Returns:
The builder.