ActivityOptions.SetLaunchDisplayId(Int32) 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 id of the display where the activity should be launched.
[Android.Runtime.Register("setLaunchDisplayId", "(I)Landroid/app/ActivityOptions;", "GetSetLaunchDisplayId_IHandler", ApiSince=26)]
public virtual Android.App.ActivityOptions? SetLaunchDisplayId (int launchDisplayId);
[<Android.Runtime.Register("setLaunchDisplayId", "(I)Landroid/app/ActivityOptions;", "GetSetLaunchDisplayId_IHandler", ApiSince=26)>]
abstract member SetLaunchDisplayId : int -> Android.App.ActivityOptions
override this.SetLaunchDisplayId : int -> Android.App.ActivityOptions
Parameters
- launchDisplayId
- Int32
The id of the display where the activity should be launched.
Returns
this
ActivityOptions
instance.
- Attributes
Remarks
Sets the id of the display where the activity should be launched. An app can launch activities on public displays or displays where the app already has activities. Otherwise, trying to launch on a private display or providing an invalid display id will result in an exception.
Setting launch display id will be ignored on devices that don't have android.content.pm.PackageManager#FEATURE_ACTIVITIES_ON_SECONDARY_DISPLAYS
.
Java documentation for android.app.ActivityOptions.setLaunchDisplayId(int)
.
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.