语言

RemoteAction 构造函数

定义

重载

RemoteAction(Icon, ICharSequence, ICharSequence, PendingIntent)

[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Icon;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V", "", ApiSince=26)]
public RemoteAction(Android.Graphics.Drawables.Icon icon, Java.Lang.ICharSequence title, Java.Lang.ICharSequence contentDescription, Android.App.PendingIntent intent);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Icon;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V", "", ApiSince=26)>]
new Android.App.RemoteAction : Android.Graphics.Drawables.Icon * Java.Lang.ICharSequence * Java.Lang.ICharSequence * Android.App.PendingIntent -> Android.App.RemoteAction

参数

icon
Icon

图标:此值不能为 null。

title
ICharSequence

CharSequence:此值不能为 null。

contentDescription
ICharSequence

CharSequence:此值不能为 null。

intent
PendingIntent

PendingIntent:此值不能为 null。

特性

注解

Android 参考。android.app.RemoteAction.RemoteAction

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

适用于

RemoteAction(Icon, String, String, PendingIntent)

[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Icon;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V", "", ApiSince=26)]
public RemoteAction(Android.Graphics.Drawables.Icon icon, string title, string contentDescription, Android.App.PendingIntent intent);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Icon;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V", "", ApiSince=26)>]
new Android.App.RemoteAction : Android.Graphics.Drawables.Icon * string * string * Android.App.PendingIntent -> Android.App.RemoteAction

参数

icon
Icon

图标:此值不能为 null。

title
String

CharSequence:此值不能为 null。

contentDescription
String

CharSequence:此值不能为 null。

intent
PendingIntent

PendingIntent:此值不能为 null。

特性

注解

Android 参考。android.app.RemoteAction.RemoteAction

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

适用于