[]Struct jni_android_sys::android::view::Display

#[repr(transparent)]
pub struct Display(_);

public final class Display

Required feature: "android-view-Display"

Methods

impl Display

pub fn getDisplayId<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn isValid<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn getFlags<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getName<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getName

Required features: "java-lang-String"

pub fn getSize<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Point>>
) -> Result<(), Local<'env, Throwable>>
[src]

getSize

Required features: "android-graphics-Point"

pub fn getRectSize<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Rect>>
) -> Result<(), Local<'env, Throwable>>
[src]

getRectSize

Required features: "android-graphics-Rect"

pub fn getCurrentSizeRange<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Point>>,
    arg1: impl Into<Option<&'env Point>>
) -> Result<(), Local<'env, Throwable>>
[src]

getCurrentSizeRange

Required features: "android-graphics-Point"

pub fn getWidth<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

Deprecated

pub fn getHeight<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

Deprecated

pub fn getRotation<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getOrientation<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

Deprecated

pub fn getPixelFormat<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

Deprecated

pub fn getRefreshRate<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>[src]

pub fn getSupportedRefreshRates<'env>(
    &'env self
) -> Result<Option<Local<'env, FloatArray>>, Local<'env, Throwable>>
[src]

Deprecated

pub fn getMode<'env>(
    &'env self
) -> Result<Option<Local<'env, Display_Mode>>, Local<'env, Throwable>>
[src]

getMode

Required features: "android-view-Display_Mode"

pub fn getSupportedModes<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<Display_Mode, Throwable>>>, Local<'env, Throwable>>
[src]

getSupportedModes

Required features: "android-view-Display_Mode"

pub fn getHdrCapabilities<'env>(
    &'env self
) -> Result<Option<Local<'env, Display_HdrCapabilities>>, Local<'env, Throwable>>
[src]

getHdrCapabilities

Required features: "android-view-Display_HdrCapabilities"

pub fn isHdr<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn isWideColorGamut<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn getAppVsyncOffsetNanos<'env>(
    &'env self
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn getPresentationDeadlineNanos<'env>(
    &'env self
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn getMetrics<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DisplayMetrics>>
) -> Result<(), Local<'env, Throwable>>
[src]

getMetrics

Required features: "android-util-DisplayMetrics"

pub fn getRealSize<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Point>>
) -> Result<(), Local<'env, Throwable>>
[src]

getRealSize

Required features: "android-graphics-Point"

pub fn getRealMetrics<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DisplayMetrics>>
) -> Result<(), Local<'env, Throwable>>
[src]

getRealMetrics

Required features: "android-util-DisplayMetrics"

pub fn getState<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub const DEFAULT_DISPLAY: i32[src]

public static final DEFAULT_DISPLAY

pub const FLAG_PRESENTATION: i32[src]

public static final FLAG_PRESENTATION

pub const FLAG_PRIVATE: i32[src]

public static final FLAG_PRIVATE

pub const FLAG_ROUND: i32[src]

public static final FLAG_ROUND

pub const FLAG_SECURE: i32[src]

public static final FLAG_SECURE

pub const FLAG_SUPPORTS_PROTECTED_BUFFERS: i32[src]

public static final FLAG_SUPPORTS_PROTECTED_BUFFERS

pub const INVALID_DISPLAY: i32[src]

public static final INVALID_DISPLAY

pub const STATE_DOZE: i32[src]

public static final STATE_DOZE

pub const STATE_DOZE_SUSPEND: i32[src]

public static final STATE_DOZE_SUSPEND

pub const STATE_OFF: i32[src]

public static final STATE_OFF

pub const STATE_ON: i32[src]

public static final STATE_ON

pub const STATE_ON_SUSPEND: i32[src]

public static final STATE_ON_SUSPEND

pub const STATE_UNKNOWN: i32[src]

public static final STATE_UNKNOWN

pub const STATE_VR: i32[src]

public static final STATE_VR

Methods from Deref<Target = Object>

pub fn getClass<'env>(
    &'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]

getClass

Required features: "java-lang-Class"

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn wait_long<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for Display

impl AsValidJObjectAndEnv for Display

impl Deref for Display

type Target = Object

The resulting type after dereferencing.

impl JniType for Display

Auto Trait Implementations

impl RefUnwindSafe for Display

impl !Send for Display

impl !Sync for Display

impl Unpin for Display

impl UnwindSafe for Display

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.