You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/api/objects/android-options.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,3 +7,4 @@ Options available for the android player. All options are optional.
7
7
|`appKilledPlaybackBehavior`|[`AppKilledPlaybackBehavior`](../constants/app-killed-playback-behavior.md)|[`ContinuePlayback`](../constants/app-killed-playback-behavior.md#continueplayback-default)| Define how the audio playback should behave after removing the app from recents (killing it). |
8
8
|`alwaysPauseOnInterruption`|`boolean`|`false`| Whether the `remote-duck` event will be triggered on every interruption |
9
9
|`stopForegroundGracePeriod`|`number`|`5`| Time in seconds to wait once the player should transition to not considering the service as in the foreground. If playback resumes within this grace period, the service remains in the foreground state. |
10
+
|`notificationClickBehavior`|[`NotificationClickBehavior`](./notification-click-behavior.md)|[`Default Value`](./notification-click-behavior.md)| Configuration for notification click behavior |
Configuration for notification click behavior on Android.
4
+
5
+
| Param | Type | Default | Description |
6
+
|-------|-------|---------|-------------|
7
+
|`enabled`|`boolean`|`true`| Whether to add URI data to the notification click intent. When disabled, the app will launch without any URI information. |
8
+
|`customUri`|`string`|`"trackplayer://notification.click"`| Custom URI to use instead of the default. Only used when `enabled` is `true`. |
9
+
|`action`|`string`|`"android.intent.action.VIEW"`| Custom action to use for the notification click intent. Only used when `enabled` is `true`. |
10
+
11
+
## Default Value
12
+
13
+
```typescript
14
+
{
15
+
enabled: true,
16
+
customUri: "trackplayer://notification.click",
17
+
action: "android.intent.action.VIEW"
18
+
}
19
+
```
20
+
21
+
## Examples
22
+
23
+
### Disable URI data (launch app without notification click detection)
0 commit comments