activeApp

open fun activeApp(applicationContext: Context)

Deprecated

Notifies the Gamebase SDK that the app has launched. It should be called as early as possible.

Because of release 2.6.0, GamebaseInitProvider call the API automatically, You do not need to call the API.

Example Usage:

public class GamebaseApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        Gamebase.activeApp(getApplicationContext());
    }
}

Since

Added 1.4.0.

Deprecated

As of release 2.6.0, You don't need to call this API anymore. This API is called automatically.

Parameters

applicationContext

The application context.

Throws

'applicationContext' is null.

'android.permission.INTERNET' permission is not defined in AndroidManifest.xml