Welcome to mirror list, hosted at ThFree Co, Russian Federation.

AdTracker.java « ads « maps « mapswithme « com « src « android - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 54b4c9e4a00bc95d3c2706cb4dd742180fb01ba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.mapswithme.maps.ads;

import android.support.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);
}