/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
android/src/com/mapswithme/maps/ads/NativeAdLoader.java
49 строк
1 KB
Александр Зацепин
[android] Migrated code to Android X
22 окт 2019, 15:11
22 окт 2019, 15:11
f2dd324
Код
Авторство
О чём код?
package com.mapswithme.maps.ads; import android.content.Context; import androidx.annotation.NonNull; import androidx.annotation.Nullable; interface NativeAdLoader { /** * Loads an ad for the specified banner id. A caller will be notified about loading through * {@link NativeAdListener} interface. * * @param context An activity context. * @param bannerId A banner id that ad will be loaded for. */ void loadAd(@NonNull Context context, @NonNull String bannerId); /** * Caller should set this listener to be informed about status of an ad loading. * * @see NativeAdListener */ void setAdListener(@Nullable NativeAdListener adListener); /** * Indicated whether the ad for the specified banner is loading right now or not. * * @param bannerId A specified banner id. * @return <code>true</code> if loading is in a progress, otherwise - <code>false</code>. */ boolean isAdLoading(@NonNull String bannerId); /** * Cancels the loading process. * */ void cancel(); /** * Detaches this loader from UI context. Must be called every time when current UI context is going * to be destroyed. Otherwise, memory leaks are possible. */ void detach(); /** * Attaches this loader to UI context. */ void attach(); }