RemoteAction 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| RemoteAction(Icon, ICharSequence, ICharSequence, PendingIntent) | |
| RemoteAction(Icon, String, String, PendingIntent) |
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
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。