ShortcutInfo.Intent 属性

定义

返回当用户选择此快捷方式时执行的意向。

public Android.Content.Intent? Intent { [Android.Runtime.Register("getIntent", "()Landroid/content/Intent;", "", ApiSince=25)] get; }
[<get: Android.Runtime.Register("getIntent", "()Landroid/content/Intent;", "", ApiSince=25)>]
member this.Intent : Android.Content.Intent

属性值

属性

注解

返回当用户选择此快捷方式时执行的意向。 如果使用 setIntents(),则返回数组中的最后一个意向。

启动器应用 <b>无法</b> 看到意向。 如果通过LauncherApps获取 aShortcutInfo,此方法将始终返回 null。 启动器只能启动快捷方式意向。LauncherApps#startShortcut

适用于 . 的 android.content.pm.ShortcutInfo.getIntent()Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于