public final class

NotificationCompatExtras

extends java.lang.Object

 java.lang.Object

↳androidx.core.app.NotificationCompatExtras

Gradle dependencies

compile group: 'androidx.core', name: 'core', version: '1.9.0-alpha04'

  • groupId: androidx.core
  • artifactId: core
  • version: 1.9.0-alpha04

Artifact androidx.core:core:1.9.0-alpha04 it located at Google repository (https://maven.google.com/)

Androidx artifact mapping:

androidx.core:core com.android.support:support-compat

Androidx class mapping:

androidx.core.app.NotificationCompatExtras android.support.v4.app.NotificationCompatExtras

Overview

Well-known extras used by NotificationCompat for backwards compatibility.

Summary

Fields
public static final java.lang.StringEXTRA_ACTION_EXTRAS

Extras key used internally by NotificationCompat to store the value of the field before it was available.

public static final java.lang.StringEXTRA_GROUP_KEY

Extras key used internally by NotificationCompat to store the value set by before it was available.

public static final java.lang.StringEXTRA_GROUP_SUMMARY

Extras key used internally by NotificationCompat to store the value set by before it was available.

public static final java.lang.StringEXTRA_LOCAL_ONLY

Extras key used internally by NotificationCompat to store the value of the android.app.Notification field before it was available.

public static final java.lang.StringEXTRA_REMOTE_INPUTS

Extras key used internally by NotificationCompat to store the value of the before the field was available.

public static final java.lang.StringEXTRA_SORT_KEY

Extras key used internally by NotificationCompat to store the value set by before it was available.

Methods
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final java.lang.String EXTRA_LOCAL_ONLY

Extras key used internally by NotificationCompat to store the value of the android.app.Notification field before it was available. If possible, use NotificationCompat.getLocalOnly(Notification) to access this field.

public static final java.lang.String EXTRA_GROUP_KEY

Extras key used internally by NotificationCompat to store the value set by before it was available. If possible, use NotificationCompat.getGroup(Notification) to access this value.

public static final java.lang.String EXTRA_GROUP_SUMMARY

Extras key used internally by NotificationCompat to store the value set by before it was available. If possible, use NotificationCompat.isGroupSummary(Notification) to access this value.

public static final java.lang.String EXTRA_SORT_KEY

Extras key used internally by NotificationCompat to store the value set by before it was available. If possible, use NotificationCompat.getSortKey(Notification) to access this value.

public static final java.lang.String EXTRA_ACTION_EXTRAS

Extras key used internally by NotificationCompat to store the value of the field before it was available. If possible, use NotificationCompat.getAction(Notification, int) to access this field.

public static final java.lang.String EXTRA_REMOTE_INPUTS

Extras key used internally by NotificationCompat to store the value of the before the field was available. If possible, use NotificationCompat.Action.getRemoteInputs() to access this field.

Source

/*
 * Copyright (C) 2014 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package androidx.core.app;

/**
 * Well-known extras used by {@link NotificationCompat} for backwards compatibility.
 */
public final class NotificationCompatExtras {
    /**
     * Extras key used internally by {@link NotificationCompat} to store the value of
     * the {@link android.app.Notification#FLAG_LOCAL_ONLY} field before it was available.
     * If possible, use {@link NotificationCompat#getLocalOnly} to access this field.
     */
    public static final String EXTRA_LOCAL_ONLY = "android.support.localOnly";

    /**
     * Extras key used internally by {@link NotificationCompat} to store the value set
     * by {@link android.app.Notification.Builder#setGroup} before it was available.
     * If possible, use {@link NotificationCompat#getGroup} to access this value.
     */
    public static final String EXTRA_GROUP_KEY = "android.support.groupKey";

    /**
     * Extras key used internally by {@link NotificationCompat} to store the value set
     * by {@link android.app.Notification.Builder#setGroupSummary} before it was available.
     * If possible, use {@link NotificationCompat#isGroupSummary} to access this value.
     */
    public static final String EXTRA_GROUP_SUMMARY = "android.support.isGroupSummary";

    /**
     * Extras key used internally by {@link NotificationCompat} to store the value set
     * by {@link android.app.Notification.Builder#setSortKey} before it was available.
     * If possible, use {@link NotificationCompat#getSortKey} to access this value.
     */
    public static final String EXTRA_SORT_KEY = "android.support.sortKey";

    /**
     * Extras key used internally by {@link NotificationCompat} to store the value of
     * the {@link android.app.Notification.Action#extras} field before it was available.
     * If possible, use {@link NotificationCompat#getAction} to access this field.
     */
    public static final String EXTRA_ACTION_EXTRAS = "android.support.actionExtras";

    /**
     * Extras key used internally by {@link NotificationCompat} to store the value of
     * the {@link android.app.Notification.Action#getRemoteInputs} before the field
     * was available.
     * If possible, use {@link NotificationCompat.Action#getRemoteInputs} to access this field.
     */
    public static final String EXTRA_REMOTE_INPUTS = "android.support.remoteInputs";

    private NotificationCompatExtras() {}
}