Table of Contents

Class DisplayMetrics

Namespace
Android.Util
Assembly
MASES.Netdroid.dll
public class DisplayMetrics : JVMBridgeBase<DisplayMetrics>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
Inheritance
DisplayMetrics
Implements
Extension Methods

Constructors

DisplayMetrics()

public DisplayMetrics()

DisplayMetrics(IJVMBridgeBaseInitializer)

Initializer used internally by JCOBridge. Do not use directly.

[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public DisplayMetrics(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

DENSITY_140

public static int DENSITY_140 { get; set; }

Property Value

int

DENSITY_180

public static int DENSITY_180 { get; set; }

Property Value

int

DENSITY_200

public static int DENSITY_200 { get; set; }

Property Value

int

DENSITY_220

public static int DENSITY_220 { get; set; }

Property Value

int

DENSITY_260

public static int DENSITY_260 { get; set; }

Property Value

int

DENSITY_280

public static int DENSITY_280 { get; set; }

Property Value

int

DENSITY_300

public static int DENSITY_300 { get; set; }

Property Value

int

DENSITY_340

public static int DENSITY_340 { get; set; }

Property Value

int

DENSITY_360

public static int DENSITY_360 { get; set; }

Property Value

int

DENSITY_390

public static int DENSITY_390 { get; set; }

Property Value

int

DENSITY_400

public static int DENSITY_400 { get; set; }

Property Value

int

DENSITY_420

public static int DENSITY_420 { get; set; }

Property Value

int

DENSITY_440

public static int DENSITY_440 { get; set; }

Property Value

int

DENSITY_450

public static int DENSITY_450 { get; set; }

Property Value

int

DENSITY_520

public static int DENSITY_520 { get; set; }

Property Value

int

DENSITY_560

public static int DENSITY_560 { get; set; }

Property Value

int

DENSITY_600

public static int DENSITY_600 { get; set; }

Property Value

int

DENSITY_DEFAULT

public static int DENSITY_DEFAULT { get; set; }

Property Value

int

DENSITY_DEVICE_STABLE

public static int DENSITY_DEVICE_STABLE { get; set; }

Property Value

int

DENSITY_HIGH

public static int DENSITY_HIGH { get; set; }

Property Value

int

DENSITY_LOW

public static int DENSITY_LOW { get; set; }

Property Value

int

DENSITY_MEDIUM

public static int DENSITY_MEDIUM { get; set; }

Property Value

int

DENSITY_TV

public static int DENSITY_TV { get; set; }

Property Value

int

DENSITY_XHIGH

public static int DENSITY_XHIGH { get; set; }

Property Value

int

DENSITY_XXHIGH

public static int DENSITY_XXHIGH { get; set; }

Property Value

int

DENSITY_XXXHIGH

public static int DENSITY_XXXHIGH { get; set; }

Property Value

int

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements java.lang.AutoCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

density

public float density { get; set; }

Property Value

float

densityDpi

public int densityDpi { get; set; }

Property Value

int

heightPixels

public int heightPixels { get; set; }

Property Value

int

scaledDensity

[Obsolete("Deprecated in JVM")]
public float scaledDensity { get; set; }

Property Value

float

widthPixels

public int widthPixels { get; set; }

Property Value

int

xdpi

public float xdpi { get; set; }

Property Value

float

ydpi

public float ydpi { get; set; }

Property Value

float

Methods

CreatePoolableInstance()

HPA initializer for DisplayMetrics()

public static DisplayMetrics CreatePoolableInstance()

Returns

DisplayMetrics

SetTo(DisplayMetrics)

public void SetTo(DisplayMetrics arg0)

Parameters

arg0 DisplayMetrics

DisplayMetrics

SetToDefaults()

public void SetToDefaults()