StatusBarNotification 类

定义

封装通知的类。

[Android.Runtime.Register("android/service/notification/StatusBarNotification", DoNotGenerateAcw=true)]
public class StatusBarNotification : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/service/notification/StatusBarNotification", DoNotGenerateAcw=true)>]
type StatusBarNotification = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
继承
StatusBarNotification
属性
实现

注解

封装通知的类。 由 NotificationManagerService 发送到客户端,包括状态栏和任何 android.service.notification.NotificationListenerService

android.service.notification.StatusBarNotificationJava 文档。

此页面的某些部分是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的条款使用。

构造函数

StatusBarNotification(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

StatusBarNotification(Parcel)
StatusBarNotification(String, String, Int32, String, Int32, Int32, Int32, Notification, UserHandle, Int64)

此成员已弃用。

属性

Class

返回此 Object的运行时类。

(继承自 Object)
Creator
GroupKey

一个键,指示此消息与其进行排名的组。

Handle

基础 Android 实例的句柄。

(继承自 Object)
Id

提供给 的 android.app.NotificationManager#notify(int, Notification)ID。

IsAppGroup

如果应用程序要求此通知属于组,则返回 true。

IsClearable

为 或 Notification#FLAG_NO_CLEAR检查通知标志Notification#FLAG_ONGOING_EVENT的便捷方法。

IsGroup

如果此通知是组的一部分,则返回 true。

IsOngoing

为 检查通知标志Notification#FLAG_ONGOING_EVENT的便捷方法。

JniIdentityHashCode

封装通知的类。

(继承自 Object)
JniPeerMembers

封装通知的类。

Key

此通知记录的唯一实例键。

Notification

android.app.Notification提供给 的 android.app.NotificationManager#notify(int, Notification)

OpPkg

发布通知的包。

OverrideGroupKey

返回替代组键。 - 或 - 设置替代组键。

PackageName

通知所属的包。

PeerReference

封装通知的类。

(继承自 Object)
PostTime

System#currentTimeMillis通知发布) 的时间 (时间,可能与 不同android.app.Notification#when

Tag

提供给 android.app.NotificationManager#notify(int, Notification)的标记,如果未指定标记,则为 null。

ThresholdClass

此 API 支持 Mono for Android 基础结构,不应直接从代码中使用。

ThresholdType

此 API 支持 Mono for Android 基础结构,不应直接从代码中使用。

Uid

通知应用的 (#getPackageName()的) uid。

User

android.os.UserHandle 通知所针对的 。

UserId
已过时.

返回此通知所针对的用户 ID。

方法

Clone()

创建并返回此 Object的副本。

DescribeContents()

描述此 Parcelable 的封送表示形式中包含的特殊对象的种类。

Dispose()

封装通知的类。

(继承自 Object)
Dispose(Boolean)

封装通知的类。

(继承自 Object)
Equals(Object)

指示某个其他对象是否“等于”此对象。

(继承自 Object)
GetHashCode()

返回对象的哈希代码值。

(继承自 Object)
JavaFinalize()

当垃圾回收确定不再引用对象时,由垃圾回收器对对象调用。

(继承自 Object)
Notify()

唤醒正在等待此对象的监视器的单个线程。

(继承自 Object)
NotifyAll()

唤醒正在等待此对象的监视器的所有线程。

(继承自 Object)
SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

(继承自 Object)
ToArray<T>()

封装通知的类。

(继承自 Object)
ToString()

返回对象的字符串表示形式。

(继承自 Object)
UnregisterFromRuntime()

封装通知的类。

(继承自 Object)
Wait()

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>。<>

(继承自 Object)
Wait(Int64)

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>,或直到经过一定数量的实时。<>

(继承自 Object)
Wait(Int64, Int32)

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>,或直到经过一定数量的实时。<>

(继承自 Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

将此对象平展到一个地块。

显式接口实现

IJavaPeerable.Disposed()

封装通知的类。

(继承自 Object)
IJavaPeerable.DisposeUnlessReferenced()

封装通知的类。

(继承自 Object)
IJavaPeerable.Finalized()

封装通知的类。

(继承自 Object)
IJavaPeerable.JniManagedPeerState

封装通知的类。

(继承自 Object)
IJavaPeerable.SetJniIdentityHashCode(Int32)

封装通知的类。

(继承自 Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

封装通知的类。

(继承自 Object)
IJavaPeerable.SetPeerReference(JniObjectReference)

封装通知的类。

(继承自 Object)

扩展方法

JavaCast<TResult>(IJavaObject)

执行 Android 运行时检查的类型转换。

JavaCast<TResult>(IJavaObject)

封装通知的类。

GetJniTypeName(IJavaPeerable)

封装通知的类。

适用于