ContentInfoCompat.Builder
class ContentInfoCompat.Builder
Builder for ContentInfoCompat.
Summary
Public constructors |
|---|
Builder(other: ContentInfoCompat)Creates a new builder initialized with the data from the given object (shallow copy). |
|
Creates a new builder. |
Public functions |
|
|---|---|
ContentInfoCompat |
build() |
ContentInfoCompat.Builder |
Sets the data to be inserted. |
ContentInfoCompat.Builder |
Sets additional metadata. |
ContentInfoCompat.Builder |
Sets flags that control content insertion behavior. |
ContentInfoCompat.Builder |
setLinkUri(linkUri: Uri?)Sets the http/https URI for the content. |
ContentInfoCompat.Builder |
Sets the source of the operation. |
Public constructors
Builder
Builder(other: ContentInfoCompat)
Creates a new builder initialized with the data from the given object (shallow copy).
Public functions
build
fun build(): ContentInfoCompat
| Returns | |
|---|---|
ContentInfoCompat |
A new |
setClip
fun setClip(clip: ClipData): ContentInfoCompat.Builder
Sets the data to be inserted.
| Parameters | |
|---|---|
clip: ClipData |
The data to insert. |
| Returns | |
|---|---|
ContentInfoCompat.Builder |
this builder |
setExtras
fun setExtras(extras: Bundle?): ContentInfoCompat.Builder
Sets additional metadata.
| Parameters | |
|---|---|
extras: Bundle? |
Optional bundle with additional metadata. |
| Returns | |
|---|---|
ContentInfoCompat.Builder |
this builder |
setFlags
fun setFlags(flags: Int): ContentInfoCompat.Builder
Sets flags that control content insertion behavior.
| Parameters | |
|---|---|
flags: Int |
Optional flags to configure the insertion behavior. Use 0 for default behavior. See |
| Returns | |
|---|---|
ContentInfoCompat.Builder |
this builder |
setLinkUri
fun setLinkUri(linkUri: Uri?): ContentInfoCompat.Builder
Sets the http/https URI for the content. See getLinkUri for more info.
| Parameters | |
|---|---|
linkUri: Uri? |
Optional http/https URI for the content. |
| Returns | |
|---|---|
ContentInfoCompat.Builder |
this builder |
setSource
fun setSource(source: Int): ContentInfoCompat.Builder
Sets the source of the operation.
| Parameters | |
|---|---|
source: Int |
The source of the operation. See |
| Returns | |
|---|---|
ContentInfoCompat.Builder |
this builder |