[]Struct jni_android_sys::android::media::Rating

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

public final class Rating

Required feature: "android-media-Rating"

Methods

impl Rating

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

toString

Required features: "java-lang-String"

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

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

writeToParcel

Required features: "android-os-Parcel"

pub fn newUnratedRating<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<Option<Local<'env, Rating>>, Local<'env, Throwable>>
[src]

newUnratedRating

Required features: "android-media-Rating"

pub fn newHeartRating<'env>(
    __jni_env: &'env Env,
    arg0: bool
) -> Result<Option<Local<'env, Rating>>, Local<'env, Throwable>>
[src]

newHeartRating

Required features: "android-media-Rating"

pub fn newThumbRating<'env>(
    __jni_env: &'env Env,
    arg0: bool
) -> Result<Option<Local<'env, Rating>>, Local<'env, Throwable>>
[src]

newThumbRating

Required features: "android-media-Rating"

pub fn newStarRating<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: f32
) -> Result<Option<Local<'env, Rating>>, Local<'env, Throwable>>
[src]

newStarRating

Required features: "android-media-Rating"

pub fn newPercentageRating<'env>(
    __jni_env: &'env Env,
    arg0: f32
) -> Result<Option<Local<'env, Rating>>, Local<'env, Throwable>>
[src]

newPercentageRating

Required features: "android-media-Rating"

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

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

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

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

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

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

pub fn CREATOR<'env>(env: &'env Env) -> Option<Local<'env, Parcelable_Creator>>[src]

get public static final CREATOR

Required feature: "android-os-Parcelable_Creator"

pub const RATING_3_STARS: i32[src]

public static final RATING_3_STARS

pub const RATING_4_STARS: i32[src]

public static final RATING_4_STARS

pub const RATING_5_STARS: i32[src]

public static final RATING_5_STARS

pub const RATING_HEART: i32[src]

public static final RATING_HEART

pub const RATING_NONE: i32[src]

public static final RATING_NONE

pub const RATING_PERCENTAGE: i32[src]

public static final RATING_PERCENTAGE

pub const RATING_THUMB_UP_DOWN: i32[src]

public static final RATING_THUMB_UP_DOWN

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 Rating

impl AsRef<Parcelable> for Rating

impl AsValidJObjectAndEnv for Rating

impl Deref for Rating

type Target = Object

The resulting type after dereferencing.

impl JniType for Rating

Auto Trait Implementations

impl RefUnwindSafe for Rating

impl !Send for Rating

impl !Sync for Rating

impl Unpin for Rating

impl UnwindSafe for Rating

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.