Condividi tramite


Notification.CarExtender Classe

Definizione

Classe helper per aggiungere estensioni Android Auto alle notifiche.

[Android.Runtime.Register("android/app/Notification$CarExtender", ApiSince=23, DoNotGenerateAcw=true)]
public sealed class Notification.CarExtender : Java.Lang.Object, Android.App.Notification.IExtender, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/app/Notification$CarExtender", ApiSince=23, DoNotGenerateAcw=true)>]
type Notification.CarExtender = class
    inherit Object
    interface Notification.IExtender
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Ereditarietà
Notification.CarExtender
Attributi
Implementazioni

Commenti

Classe helper per aggiungere estensioni Android Auto alle notifiche. Per creare una notifica con estensioni auto:

<ol><li>Crea un Notification.Builderoggetto , impostando le proprietà desiderate. <li>Creare un oggetto CarExtender. <li>Impostare proprietà specifiche dell'auto usando i add metodi e set di CarExtender. <li>Call Notification.Builder#extend(Notification.Extender) per applicare le estensioni a una notifica. </olo>

Notification notification = new Notification.Builder(context)
                    ...
                    .extend(new CarExtender()
                            .set*(...))
                    .build();

È possibile accedere alle estensioni dell'auto in una notifica esistente usando il CarExtender(Notification) costruttore e quindi usando i get metodi per accedere ai valori.

Documentazione java per android.app.Notification.CarExtender.

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Costruttori

Notification.CarExtender()

Creare un CarExtender oggetto con le opzioni predefinite.

Notification.CarExtender(Notification)

Creare un oggetto CarExtender dalle opzioni CarExtender di una notifica esistente.

Proprietà

Class

Restituisce la classe di runtime di questo Objectoggetto .

(Ereditato da Object)
Color

Ottiene il colore principale.

Handle

Handle per l'istanza di Android sottostante.

(Ereditato da Object)
JniIdentityHashCode

Classe helper per aggiungere estensioni Android Auto alle notifiche.

(Ereditato da Object)
JniPeerMembers

Classe helper per aggiungere estensioni Android Auto alle notifiche.

LargeIcon

Ottiene l'icona grande utilizzata nella notifica dell'auto oppure null se non è stata impostata alcuna icona.

PeerReference

Classe helper per aggiungere estensioni Android Auto alle notifiche.

(Ereditato da Object)
ThresholdClass

Questa API supporta l'infrastruttura Mono per Android e non deve essere usata direttamente dal codice.

(Ereditato da Object)
ThresholdType

Questa API supporta l'infrastruttura Mono per Android e non deve essere usata direttamente dal codice.

(Ereditato da Object)

Metodi

Clone()

Crea e restituisce una copia di questo oggetto.

(Ereditato da Object)
Dispose()

Classe helper per aggiungere estensioni Android Auto alle notifiche.

(Ereditato da Object)
Dispose(Boolean)

Classe helper per aggiungere estensioni Android Auto alle notifiche.

(Ereditato da Object)
Equals(Object)

Indica se un altro oggetto è "uguale a" questo.

(Ereditato da Object)
Extend(Notification+Builder)

Classe helper per aggiungere estensioni Android Auto alle notifiche.

GetHashCode()

Restituisce un valore del codice hash per l'oggetto.

(Ereditato da Object)
GetUnreadConversation()

Classe helper per aggiungere estensioni Android Auto alle notifiche.

JavaFinalize()

Chiamato dal Garbage Collector su un oggetto quando Garbage Collection determina che non sono presenti altri riferimenti all'oggetto .

(Ereditato da Object)
Notify()

Riattiva un singolo thread in attesa del monitor dell'oggetto.

(Ereditato da Object)
NotifyAll()

Riattiva tutti i thread in attesa del monitor dell'oggetto.

(Ereditato da Object)
SetColor(Color)

Classe helper per aggiungere estensioni Android Auto alle notifiche.

SetHandle(IntPtr, JniHandleOwnership)

Imposta la proprietà Handle.

(Ereditato da Object)
SetLargeIcon(Bitmap)

Classe helper per aggiungere estensioni Android Auto alle notifiche.

SetUnreadConversation(Notification+CarExtender+UnreadConversation)

Classe helper per aggiungere estensioni Android Auto alle notifiche.

ToArray<T>()

Classe helper per aggiungere estensioni Android Auto alle notifiche.

(Ereditato da Object)
ToString()

Restituisce una rappresentazione di stringa dell'oggetto.

(Ereditato da Object)
UnregisterFromRuntime()

Classe helper per aggiungere estensioni Android Auto alle notifiche.

(Ereditato da Object)
Wait()

Fa sì che il thread corrente attenda finché non viene risvegliato, in genere ricevendo <>una notifica</em> o <em>interrotto</em>.

(Ereditato da Object)
Wait(Int64, Int32)

Fa sì che il thread corrente attenda finché non viene risvegliato, in genere ricevendo>< una notifica</em> o <em>interrotto</em> o fino a quando non è trascorsa una determinata quantità di tempo reale.

(Ereditato da Object)
Wait(Int64)

Fa sì che il thread corrente attenda finché non viene risvegliato, in genere ricevendo>< una notifica</em> o <em>interrotto</em> o fino a quando non è trascorsa una determinata quantità di tempo reale.

(Ereditato da Object)

Implementazioni dell'interfaccia esplicita

IJavaPeerable.Disposed()

Classe helper per aggiungere estensioni Android Auto alle notifiche.

(Ereditato da Object)
IJavaPeerable.DisposeUnlessReferenced()

Classe helper per aggiungere estensioni Android Auto alle notifiche.

(Ereditato da Object)
IJavaPeerable.Finalized()

Classe helper per aggiungere estensioni Android Auto alle notifiche.

(Ereditato da Object)
IJavaPeerable.JniManagedPeerState

Classe helper per aggiungere estensioni Android Auto alle notifiche.

(Ereditato da Object)
IJavaPeerable.SetJniIdentityHashCode(Int32)

Classe helper per aggiungere estensioni Android Auto alle notifiche.

(Ereditato da Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

Classe helper per aggiungere estensioni Android Auto alle notifiche.

(Ereditato da Object)
IJavaPeerable.SetPeerReference(JniObjectReference)

Classe helper per aggiungere estensioni Android Auto alle notifiche.

(Ereditato da Object)

Metodi di estensione

JavaCast<TResult>(IJavaObject)

Esegue una conversione del tipo di tipo controllato dal runtime Android.

JavaCast<TResult>(IJavaObject)

Classe helper per aggiungere estensioni Android Auto alle notifiche.

GetJniTypeName(IJavaPeerable)

Classe helper per aggiungere estensioni Android Auto alle notifiche.

Si applica a