UIDevice.CurrentDevice 속성

정의

UIDevice 싱글톤 인스턴스를 반환합니다.

public static UIKit.UIDevice CurrentDevice { [Foundation.Export("currentDevice")] get; }
member this.CurrentDevice : UIKit.UIDevice

속성 값

특성

설명

개발자는 일반적으로 다음과 같은 속성을 사용합니다.

var device = UIDevice.CurrentDevice;
Console.WriteLine (device.BatteryLevel);

백그라운드 스레드에서 사용할 수 있습니다.

적용 대상