Adrop
The main class of the Adrop SDK. Handles SDK initialization and global settings.Static Methods
Static Properties
Usage Example
AdropTheme
Enum for setting dark mode for ads.Values
Usage Example
AdropErrorCode
Error codes that may occur when loading and displaying ads.Values
AdropAdChoicesPosition
Enum for setting the AdChoices badge position on backfill native ads.Values
Usage Example
AdropBanner
View class for displaying banner ads.Constructor
Properties
Methods
Companion Methods
Usage Example
AdropBannerListener
Interface for handling banner ad events.Methods
All callbacks are called on the main thread (
@UiThread).AdropNativeAd
Class for displaying native ads.Constructor
Properties
Methods
Companion Methods
Usage Example
AdropNativeAdView
Container view for rendering native ads.Constructor
Properties
Methods
Usage Example
AdropNativeAdListener
Interface for handling native ad events.Methods
All callbacks are called on the main thread (
@UiThread).AdropNativeAdProfile
Data class containing profile information for native ads.Properties
Usage Example
AdropMediaView
View for displaying native ad media content.Constructor
Description
The media view displays image or video content for native ads. It should be set through thesetMediaView() method of AdropNativeAdView.
AdropInterstitialAd
Class for displaying interstitial ads.Constructor
Properties
Methods
Usage Example
AdropInterstitialAdListener
Interface for handling interstitial ad events.Methods
All callbacks are called on the main thread (
@UiThread).AdropInterstitialAdCloseListener
Interface for handling interstitial ad close events.Methods
All callbacks are called on the main thread (
@UiThread).AdropRewardedAd
Class for displaying rewarded ads.Constructor
Properties
Methods
Usage Example
AdropRewardedAdListener
Interface for handling rewarded ad events.Methods
All callbacks are called on the main thread (
@UiThread).AdropUserDidEarnRewardHandler
Type alias called when a reward is granted.Definition
Parameters
Usage Example
AdropPopupAd
Class for displaying popup ads.Constructor
Properties
Methods
Usage Example
AdropPopupAdListener
Interface for handling popup ad events.Methods
All callbacks are called on the main thread (
@UiThread).AdropPopupAdCloseListener
Interface for handling popup ad close events.Methods
All callbacks are called on the main thread (
@UiThread).AdropSplashAd
Class for displaying splash ads.Constructor
Parameters
Properties
Methods
Usage Example
AdropSplashAdListener
Interface for handling splash ad events.Methods
Parameters
All callbacks are called on the main thread (
@UiThread).AdropSplashAdView
Class for displaying splash ads as a view.Constructor
Properties
Methods
Usage Example
AdropSplashAdViewListener
Interface for handling splash ad view events.Methods
All callbacks are called on the main thread (
@UiThread).AdropKey
Class that defines user property keys.Constants
Usage Example
AdropValue
Class that defines user property values.Common Constants
AdropBirth
Defines date of birth formats.AdropGender
Defines gender values.Usage Example
CreativeSize
Data class representing the size of a creative.Properties
Usage Example
AdropEventParam
Class for creating custom event parameters.Builder Methods
Usage Example
- Parameter key must be 1–64 characters.
- String values are limited to 1024 characters maximum.
- The value passed to
putLong()cannot exceed JavaScript’s MAX_SAFE_INTEGER (9007199254740991).
AdropMetrics
Singleton object for managing user events and properties.Static Properties
Static Methods
sendEvent
Sends a user event with optional parameters.- Event name must be 1–64 characters.
- Duplicate events with the same name and parameters are throttled (500ms window).
- The SDK must be initialized before calling
sendEvent().