Language

LauncherApps.ShortcutQuery.SetActivity(ComponentName) Method

Definition

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.

Applies to