Class BidderTokenLoader


  • public final class BidderTokenLoader
    extends java.lang.Object
    Interface contains logic that creates a bidder token to be used in the mediation. Bidder token is generated asynchronously.
    • Method Detail

      • loadBidderToken

        @Deprecated
        public static void loadBidderToken​(@NonNull
                                           android.content.Context context,
                                           @NonNull
                                           BidderTokenLoadListener listener)
        Creates bidder token and dispatches results into listener.
        Parameters:
        context - The activity context the view is running in, through which it can access the current theme, resources, etc. In particular, it uses the window manager and theme in this context to present its UI.
        listener - Listener to receive result of token generation.
      • loadBidderToken

        public static void loadBidderToken​(@NonNull
                                           android.content.Context context,
                                           @NonNull
                                           com.yandex.mobile.ads.common.BidderTokenRequestConfiguration bidderTokenRequestConfiguration,
                                           @NonNull
                                           BidderTokenLoadListener listener)
        Creates bidder token via request parameters and dispatches results into listener.
        Parameters:
        context - The activity context the view is running in, through which it can access the current theme, resources, etc. In particular, it uses the window manager and theme in this context to present its UI.
        bidderTokenRequestConfiguration - The request object contains parameters to fetch a bidder token.
        listener - Listener to receive result of token generation.