LauncherApps.ShortcutQuery.SetActivity(ComponentName) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
If non-null, returns only shortcuts associated with the activity; i.e. ShortcutInfos whose ShortcutInfo.getActivity() are equal to activity.
[Android.Runtime.Register("setActivity", "(Landroid/content/ComponentName;)Landroid/content/pm/LauncherApps$ShortcutQuery;", "GetSetActivity_Landroid_content_ComponentName_Handler", ApiSince=25)]
public virtual Android.Content.PM.LauncherApps.ShortcutQuery? SetActivity(Android.Content.ComponentName? activity);
[<Android.Runtime.Register("setActivity", "(Landroid/content/ComponentName;)Landroid/content/pm/LauncherApps$ShortcutQuery;", "GetSetActivity_Landroid_content_ComponentName_Handler", ApiSince=25)>]
abstract member SetActivity : Android.Content.ComponentName -> Android.Content.PM.LauncherApps.ShortcutQuery
override this.SetActivity : Android.Content.ComponentName -> Android.Content.PM.LauncherApps.ShortcutQuery
Parameters
- activity
- ComponentName
Returns
- Attributes
Remarks
If non-null, returns only shortcuts associated with the activity; i.e. ShortcutInfos whose ShortcutInfo.getActivity() are equal to activity.
Android reference for android.content.pm.LauncherApps.ShortcutQuery.setActivity.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.