blob: a3d8bef1f3f9ae8c9d7a96424092f0a0963a24fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package com.mapswithme.maps.ads;
import androidx.annotation.NonNull;
/**
* Represents a interface to track an ad visibility on the screen.
* As result, object of this class can conclude whether a tracked ad has a good impression indicator,
* i.e. has been shown enough time for user, or not.
*/
public interface AdTracker
{
void onViewShown(@NonNull String provider, @NonNull String bannerId);
void onViewHidden(@NonNull String provider, @NonNull String bannerId);
void onContentObtained(@NonNull String provider, @NonNull String bannerId);
boolean isImpressionGood(@NonNull String provider, @NonNull String bannerId);
}
|