⚡SDK Initialization
Initializing the AdJump.
You must initialize the AdJump SDK before you can use any of its features.
AdJump adjump = new AdJump(Context context, String accountid, String appid, String userId);
The parameters to this call are as follows:
Parameter
Description
context
Your application's context.
accountId
Your Adjump account id.
appId
Your Adjump application id.
userId
The registered User Id associated with your application.
Initialize AdJump SDK:
Initialize the AdJump OfferWall SDK by invoking the initialize
function
AdJump.InitialisationListener initialisationListener = new AdJump.InitialisationListener() {
@Override
public void onInitialisationSuccess() {
runOnUiThread(() -> {
Log.i("AdJump", "Initialization Success");
});
}
@Override
public void onInitialisationError(Exception exception) {
runOnUiThread(() -> {
Log.e("AdJump", "Initialization Error: " + exception.getMessage());
});
}
};
Boolean showBottomSheet = true //Make this true.
//If you want to show the Special Offer BottomSheet.
adJump.initialize(initialisationListener, showBottomSheet);
//show the bottom sheet.
adJump.showBottomSheet((Activity) context);
Open the Adjump offerwall
To initiate the OfferWall, simply invoke the launchOfferWall
method.
if (adjump.isAvailable()) {
adjump.launchOfferWall();
} else {
// show some message or alert when adjump is not available!
// or reinitialize Adjump
}
Last updated