Share via


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);

これは、バックグラウンド スレッドから使用できます。

適用対象