PendingIntentCompat
class PendingIntentCompat
Helper for accessing features in PendingIntent.
Summary
Public functions |
|
|---|---|
java-static PendingIntent |
getActivities(Retrieves a |
java-static PendingIntent |
getActivities(Retrieves a |
java-static PendingIntent? |
Retrieves a |
java-static PendingIntent? |
getActivity(Retrieves a |
java-static PendingIntent? |
Retrieves a |
java-static PendingIntent |
@RequiresApi(value = 26)Retrieves a |
java-static PendingIntent? |
Retrieves a |
java-static Unit |
send(
|
java-static Unit |
send(
|
java-static Unit |
send(
|
Public functions
getActivities
java-static fun getActivities(
context: Context,
requestCode: Int,
intents: Array<Intent!>,
flags: Int,
isMutable: Boolean
): PendingIntent
Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions. The caller provides the flag as combination of all the other values except mutability flag. This method combines mutability flag when necessary. See getActivities.
getActivities
java-static fun getActivities(
context: Context,
requestCode: Int,
intents: Array<Intent!>,
flags: Int,
options: Bundle?,
isMutable: Boolean
): PendingIntent
Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions. The caller provides the flag as combination of all the other values except mutability flag. This method combines mutability flag when necessary. See getActivities.
getActivity
java-static fun getActivity(
context: Context,
requestCode: Int,
intent: Intent,
flags: Int,
isMutable: Boolean
): PendingIntent?
Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions. The caller provides the flag as combination of all the other values except mutability flag. This method combines mutability flag when necessary.
| Returns | |
|---|---|
PendingIntent? |
Returns an existing or new PendingIntent matching the given parameters. May return |
| See also | |
|---|---|
getActivity |
getActivity
java-static fun getActivity(
context: Context,
requestCode: Int,
intent: Intent,
flags: Int,
options: Bundle?,
isMutable: Boolean
): PendingIntent?
Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions. The caller provides the flag as combination of all the other values except mutability flag. This method combines mutability flag when necessary.
| Returns | |
|---|---|
PendingIntent? |
Returns an existing or new PendingIntent matching the given parameters. May return |
| See also | |
|---|---|
getActivity |
getBroadcast
java-static fun getBroadcast(
context: Context,
requestCode: Int,
intent: Intent,
flags: Int,
isMutable: Boolean
): PendingIntent?
Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions. The caller provides the flag as combination of all the other values except mutability flag. This method combines mutability flag when necessary.
| Returns | |
|---|---|
PendingIntent? |
Returns an existing or new PendingIntent matching the given parameters. May return |
| See also | |
|---|---|
getBroadcast |
getForegroundService
@RequiresApi(value = 26)
java-static fun getForegroundService(
context: Context,
requestCode: Int,
intent: Intent,
flags: Int,
isMutable: Boolean
): PendingIntent
Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions. The caller provides the flag as combination of all the other values except mutability flag. This method combines mutability flag when necessary. See getForegroundService .
getService
java-static fun getService(
context: Context,
requestCode: Int,
intent: Intent,
flags: Int,
isMutable: Boolean
): PendingIntent?
Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions. The caller provides the flag as combination of all the other values except mutability flag. This method combines mutability flag when necessary.
| Returns | |
|---|---|
PendingIntent? |
Returns an existing or new PendingIntent matching the given parameters. May return |
| See also | |
|---|---|
getService |
send
java-static fun send(
pendingIntent: PendingIntent,
code: Int,
onFinished: PendingIntent.OnFinished?,
handler: Handler?
): Unit
send variants that support PendingIntent.OnFinished callbacks have a bug on many API levels that the callback may be invoked even if the PendingIntent was never sent (ie, such as if the PendingIntent was canceled, and the send() invocation threw a PendingIntent.CanceledException). Using this compatibility method fixes that bug and guarantees that PendingIntent.OnFinished callbacks will only be invoked if send() completed successfully.
See send.
send
java-static fun send(
pendingIntent: PendingIntent,
context: Context,
code: Int,
intent: Intent,
onFinished: PendingIntent.OnFinished?,
handler: Handler?
): Unit
send variants that support PendingIntent.OnFinished callbacks have a bug on many API levels that the callback may be invoked even if the PendingIntent was never sent (ie, such as if the PendingIntent was canceled, and the send() invocation threw a PendingIntent.CanceledException). Using this compatibility method fixes that bug and guarantees that PendingIntent.OnFinished callbacks will only be invoked if send() completed successfully.
See send.
send
java-static fun send(
pendingIntent: PendingIntent,
context: Context,
code: Int,
intent: Intent,
onFinished: PendingIntent.OnFinished?,
handler: Handler?,
requiredPermissions: String?,
options: Bundle?
): Unit
send variants that support PendingIntent.OnFinished callbacks have a bug on many API levels that the callback may be invoked even if the PendingIntent was never sent (ie, such as if the PendingIntent was canceled, and the send() invocation threw a PendingIntent.CanceledException). Using this compatibility method fixes that bug and guarantees that PendingIntent.OnFinished callbacks will only be invoked if send() completed successfully.
See send