Added in API level 10000
ClassifiableContent.Builder
public
static
final
class
ClassifiableContent.Builder
extends Object
| java.lang.Object | |
| ↳ | android.app.contentsafety.ClassifiableContent.Builder |
Builder for ClassifiableContent.
Summary
Public constructors | |
|---|---|
Builder(LocusId locusId, String mimeType)
Creates a new builder. |
|
Public methods | |
|---|---|
ClassifiableContent
|
build()
Builds the |
ClassifiableContent.Builder
|
setData(ParcelFileDescriptor data)
Sets the |
ClassifiableContent.Builder
|
setUri(Uri uri)
Sets the |
Inherited methods | |
|---|---|
Public constructors
Builder
Added in API level 10000
public Builder (LocusId locusId, String mimeType)
Creates a new builder.
| Parameters | |
|---|---|
locusId |
LocusId: the LocusId to set.
This value cannot be null. |
mimeType |
String: the MIME type of the content.
This value cannot be null. |
Public methods
build
Added in API level 10000
public ClassifiableContent build ()
Builds the ClassifiableContent object.
| Returns | |
|---|---|
ClassifiableContent |
the built ClassifiableContent
This value cannot be null. |
setData
Added in API level 10000
public ClassifiableContent.Builder setData (ParcelFileDescriptor data)
Sets the ParcelFileDescriptor containing the raw data of this content.
| Parameters | |
|---|---|
data |
ParcelFileDescriptor: the ParcelFileDescriptor to set.
This value cannot be null. |
| Returns | |
|---|---|
ClassifiableContent.Builder |
this builder.
This value cannot be null. |
setUri
Added in API level 10000
public ClassifiableContent.Builder setUri (Uri uri)
Sets the Uri of the content.
| Parameters | |
|---|---|
uri |
Uri: the Uri to set.
This value cannot be null. |
| Returns | |
|---|---|
ClassifiableContent.Builder |
this builder.
This value cannot be null. |