Struct admob_android::AdMobPlugin
source · [−]pub struct AdMobPlugin { /* private fields */ }
Implementations
sourceimpl AdMobPlugin
impl AdMobPlugin
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>,
pub fn is_initialized(&self) -> Result<bool>
pub fn load_interstitial(&self, ad_id: &str) -> Result<()>
pub fn is_interstitial_loaded(&self) -> Result<bool>
pub fn show_interstitial(&self) -> Result<()>
pub fn request_user_consent(&self) -> Result<()>
pub fn reset_consent_state(&self) -> Result<()>
pub fn load_rewarded<S>(&self, ad_unit_id: S) -> Result<()>where
S: AsRef<str>,
pub fn is_rewarded_loaded(&self) -> Result<bool>
pub fn show_rewarded(&self) -> Result<()>
pub fn load_rewarded_interstitial<S>(&self, ad_unit_id: S) -> Result<()>where
S: AsRef<str>,
pub fn is_rewarded_interstitial_loaded(&self) -> Result<bool>
pub fn show_rewarded_interstitial(&self) -> Result<()>
Trait Implementations
sourceimpl CrossbowPlugin for AdMobPlugin
impl CrossbowPlugin for AdMobPlugin
fn from_java_vm(vm: Arc<JavaVM>) -> Result<Self>where
Self: Sized,
fn get_plugin_name() -> &'static str
fn get_receiver(&self) -> &Receiver<Signal>
Auto Trait Implementations
impl RefUnwindSafe for AdMobPlugin
impl Send for AdMobPlugin
impl Sync for AdMobPlugin
impl Unpin for AdMobPlugin
impl UnwindSafe for AdMobPlugin
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more