diff options
Diffstat (limited to 'core/java/android/app/Notification.java')
-rw-r--r-- | core/java/android/app/Notification.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index e26cac519756..3e75c52bf893 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -2951,6 +2951,19 @@ public class Notification implements Parcelable } /** + * Sets the token used for background operations for the pending intents associated with this + * notification. + * + * This token is automatically set during deserialization for you, you usually won't need to + * call this unless you want to change the existing token, if any. + * + * @hide + */ + public void setAllowlistToken(@Nullable IBinder token) { + mWhitelistToken = token; + } + + /** * @hide */ public static void addFieldsFromContext(Context context, Notification notification) { |