Struct AdMobPlugin

Source
pub struct AdMobPlugin { /* private fields */ }

Implementations§

Source§

impl AdMobPlugin

Source

pub fn initialize<S>( &self, is_for_child_directed_treatment: bool, max_ad_content_rating: S, is_real: bool, is_test_europe_user_consent: bool, ) -> Result<()>
where S: AsRef<str>,

Source

pub fn is_initialized(&self) -> Result<bool>

Source

pub fn load_interstitial(&self, ad_id: &str) -> Result<()>

Source

pub fn is_interstitial_loaded(&self) -> Result<bool>

Source

pub fn show_interstitial(&self) -> Result<()>

Source

pub fn load_banner<S>( &self, ad_unit_id: S, position: i32, size: BannerSize, show_instantly: bool, respect_safe_area: bool, ) -> Result<()>
where S: AsRef<str>,

Source

pub fn is_banner_loaded(&self) -> Result<bool>

Source

pub fn destroy_banner(&self) -> Result<()>

Source

pub fn show_banner(&self) -> Result<()>

Source

pub fn hide_banner(&self) -> Result<()>

Source

pub fn banner_width(&self) -> Result<i32>

Source

pub fn banner_height(&self) -> Result<i32>

Source

pub fn banner_width_in_pixels(&self) -> Result<i32>

Source

pub fn banner_height_in_pixels(&self) -> Result<i32>

Source

pub fn load_rewarded<S>(&self, ad_unit_id: S) -> Result<()>
where S: AsRef<str>,

Source

pub fn is_rewarded_loaded(&self) -> Result<bool>

Source

pub fn show_rewarded(&self) -> Result<()>

Source

pub fn load_rewarded_interstitial<S>(&self, ad_unit_id: S) -> Result<()>
where S: AsRef<str>,

Source

pub fn is_rewarded_interstitial_loaded(&self) -> Result<bool>

Source

pub fn show_rewarded_interstitial(&self) -> Result<()>

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<'a, T> Desc<'a, T> for T

Source§

fn lookup(self, _: &JNIEnv<'a>) -> Result<T, Error>

Look up the concrete type from the JVM.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.