Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
A builder for a ClipData Item.
Summary
Public constructors
Public methods
build
fun build(): ClipData.Item
Constructs a new Item with the properties set on this builder.
setHtmlText
fun setHtmlText(htmlText: String?): ClipData.Item.Builder
Sets the HTML text for the item to be constructed.
Parameters |
htmlText |
String?: This value may be null . |
setIntentSender
fun setIntentSender(intentSender: IntentSender?): ClipData.Item.Builder
Sets the IntentSender
for the item to be constructed. To prevent receiving apps from improperly manipulating the intent to launch another activity as this caller, the provided IntentSender must be immutable. If there is a fixed lifetime for this ClipData (ie. for drag and drop), the system will cancel the IntentSender when it is no longer used.
Parameters |
intentSender |
IntentSender?: This value may be null . |
setUri
fun setUri(uri: Uri?): ClipData.Item.Builder
Sets the URI for the item to be constructed.
Parameters |
uri |
Uri?: This value may be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-06-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-18 UTC."],[],[]]