ActivityOptions.SetLaunchDisplayId(Int32) 메서드

정의

활동을 시작할 디스플레이의 ID를 설정합니다.

[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

매개 변수

launchDisplayId
Int32

활동을 시작할 디스플레이의 ID입니다.

반환

thisActivityOptionsinstance.

특성

설명

활동을 시작할 디스플레이의 ID를 설정합니다. 앱은 앱에 이미 활동이 있는 공용 디스플레이 또는 디스플레이에서 활동을 시작할 수 있습니다. 그렇지 않으면 프라이빗 디스플레이에서 시작하거나 잘못된 표시 ID를 제공하면 예외가 발생합니다.

시작 표시 ID 설정은 가 없는 android.content.pm.PackageManager#FEATURE_ACTIVITIES_ON_SECONDARY_DISPLAYS디바이스에서 무시됩니다.

에 대한 Java 설명서입니다 android.app.ActivityOptions.setLaunchDisplayId(int).

이 페이지의 일부는 만들고 공유하며 에 설명된 조건에 따라 사용되는 작업을 기반으로 수정됩니다.

적용 대상