Class AppBrain
java.lang.Object
com.appbrain.AppBrain
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddTestDevice(String deviceId) Put a device in test mode.static AdServicegetAds()Get an AdService implementation, which allows you to show AppBrain Promoted Apps.static AdvertiserServiceGets an AdvertiserService implementation, which allows you to send conversion events to AppBrain.static RemoteSettingsGet the values that were set on the server.static voidInitialize the AppBrain SDK.static voidDeprecated.This method is now called automatically.
-
Method Details
-
init
Initialize the AppBrain SDK. This method is best called in the onCreate() of any Activity where AppBrain is used. If your app has minSdkVersion 14 or higher, this method will be called automatically, so calling it from your activities is optional.- Parameters:
context- The Activity context.
-
initApp
Deprecated.This method is now called automatically. You can safely remove any calls to it from your app.Initialize the AppBrain SDK. This method is especially meant for yourApplication.onCreate(). Because it's not called from an Activity, the analytics will not count this user as active in your app (because the Application can be started because of a broadcast receiver or service for instance.- Parameters:
context- The context of the Android app.
-
addTestDevice
Put a device in test mode. In test mode random cloud alerts will be shown.- Parameters:
deviceId- Your device ID, which can be found in the logcat output when debugging on your device.
-
getAds
Get an AdService implementation, which allows you to show AppBrain Promoted Apps.- Returns:
- An AdService implementation
-
getSettings
Get the values that were set on the server.- Returns:
- An object containing all values that were set on the server.
-
getAdvertiserService
Gets an AdvertiserService implementation, which allows you to send conversion events to AppBrain.- Returns:
- An AdvertiserService implementation
-