ShortcutInfo.Builder.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.
Sets the target activity.
[Android.Runtime.Register("setActivity", "(Landroid/content/ComponentName;)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetActivity_Landroid_content_ComponentName_Handler", ApiSince=25)]
public virtual Android.Content.PM.ShortcutInfo.Builder SetActivity(Android.Content.ComponentName activity);
[<Android.Runtime.Register("setActivity", "(Landroid/content/ComponentName;)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetActivity_Landroid_content_ComponentName_Handler", ApiSince=25)>]
abstract member SetActivity : Android.Content.ComponentName -> Android.Content.PM.ShortcutInfo.Builder
override this.SetActivity : Android.Content.ComponentName -> Android.Content.PM.ShortcutInfo.Builder
Parameters
- activity
- ComponentName
Returns
- Attributes
Remarks
Sets the target activity. A shortcut will be shown along with this activity's icon on the launcher.
Android reference for android.content.pm.ShortcutInfo.Builder.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.