Builder
class Builder
| kotlin.Any | |
| ↳ | android.app.personalcontext.insight.InsightActionDetails.Builder |
Builder for InsightActionDetails. A valid InsightActionDetails requires at least one type of action to be set, either a PendingIntent, RemoteAction, or RemoteAppFunctionAction. The builder will throw an IllegalStateException if none is present when build() is invoked. Multiple actions can be set for a InsightActionDetails. The InsightActionDetails consumer may choose the action that best fits their usage in this case.
Summary
| Public constructors | |
|---|---|
Builder()Creates a new builder for the insight action details. |
|
| Public methods | |
|---|---|
| InsightActionDetails |
build()Builds the |
| InsightActionDetails.Builder |
setPendingIntent(pendingIntent: PendingIntent)Sets the |
| InsightActionDetails.Builder |
setRemoteAction(remoteAction: RemoteAction)Sets the |
| InsightActionDetails.Builder |
setRemoteAppFunctionAction(remoteAppFunctionAction: RemoteAppFunctionAction)Sets the |
Public constructors
Public methods
build
fun build(): InsightActionDetails
Builds the InsightActionDetails.
| Return | |
|---|---|
InsightActionDetails |
the InsightActionDetails. This value cannot be null. |
setPendingIntent
fun setPendingIntent(pendingIntent: PendingIntent): InsightActionDetails.Builder
Sets the PendingIntent for the insight action details.
| Parameters | |
|---|---|
pendingIntent |
PendingIntent: the PendingIntent to set. This value cannot be null. |
| Return | |
|---|---|
InsightActionDetails.Builder |
This value cannot be null. |
setRemoteAction
fun setRemoteAction(remoteAction: RemoteAction): InsightActionDetails.Builder
Sets the RemoteAction for the insight action details.
| Parameters | |
|---|---|
remoteAction |
RemoteAction: the RemoteAction to set. This value cannot be null. |
| Return | |
|---|---|
InsightActionDetails.Builder |
This value cannot be null. |
setRemoteAppFunctionAction
fun setRemoteAppFunctionAction(remoteAppFunctionAction: RemoteAppFunctionAction): InsightActionDetails.Builder
Sets the RemoteAppFunctionAction for the insight action details.
| Parameters | |
|---|---|
remoteAppFunctionAction |
RemoteAppFunctionAction: the RemoteAppFunctionAction to set. This value cannot be null. |
| Return | |
|---|---|
InsightActionDetails.Builder |
This value cannot be null. |