Class SharedContent.Builder
java.lang.Object
com.codename1.share.SharedContent.Builder
- Enclosing class:
SharedContent
Builder for
SharedContent. Used by the platform ports.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a file item.Adds an image item.Adds a text item.Adds a URL item.build()Builds the immutable shared content.Sets the subject.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subject
Sets the subject.
Parameters
s: the subject
Returns
this builder for chaining
-
addText
Adds a text item.
Parameters
text: the text
Returns
this builder for chaining
-
addUrl
Adds a URL item.
Parameters
url: the URL
Returns
this builder for chaining
-
addFile
Adds a file item.
Parameters
-
mime: the MIME type, or null -
cn1Path: theFileSystemStoragepath of the copied file -
title: an optional title, or null
Returns
this builder for chaining
-
-
addImage
Adds an image item.
Parameters
-
mime: the MIME type, or null -
cn1Path: theFileSystemStoragepath of the copied image -
title: an optional title, or null
Returns
this builder for chaining
-
-
build
Builds the immutable shared content.
Returns
the shared content
-