Java 类com.badlogic.gdx.backends.android.AndroidFragmentApplication 实例源码

项目:gdx-firebase    文件:AndroidFirebaseAuth.java   
public AndroidFirebaseAuth(Activity activity, FirebaseConfiguration firebaseConfiguration) {
    this.firebaseConfiguration = firebaseConfiguration;
    this.activity = activity;
    this.firebaseAuth = com.google.firebase.auth.FirebaseAuth.getInstance();
    fbAuthStateListeners = new Array<>();
    authStateListeners = new Array<>();


    if (Gdx.app instanceof AndroidApplication) {
        ((AndroidApplication) Gdx.app).addAndroidEventListener(this);
    } else if (Gdx.app instanceof AndroidFragmentApplication) {
        ((AndroidFragmentApplication) Gdx.app).addAndroidEventListener(this);
    }
}
项目:gdx-facebook    文件:AndroidGDXFacebook.java   
public AndroidGDXFacebook(final AndroidFragmentApplication activity, final GDXFacebookConfig config) {
    super(config);
    this.activity = activity.getActivity();

    FacebookSdk.sdkInitialize(this.activity.getApplicationContext());
    AppEventsLogger.activateApp(this.activity.getApplication());
    callbackManager = CallbackManager.Factory.create();

}
项目:gdx-pay    文件:AndroidGooglePlayPurchaseManager.java   
@SuppressWarnings("unused") // Unit tested with reflection. (as in IAP.java)
public AndroidGooglePlayPurchaseManager(Activity activity,
                                        AndroidFragmentApplication application,
                                        int activityRequestCode) {

    PurchaseResponseActivityResultConverter converter = new PurchaseResponseActivityResultConverter(this);
    AsyncExecutor executor = new NewThreadSleepAsyncExecutor();
    ApplicationProxy.FragmentProxy proxy = new ApplicationProxy.FragmentProxy(activity, application);
    googleInAppBillingService = new V3GoogleInAppBillingService(proxy, activityRequestCode, converter, executor);

    PurchaseSystem.setManager(this);
}
项目:gdx-pay    文件:V3GoogleInAppBillingService.java   
@SuppressWarnings("unused") // Used by Fragment applications, but should be tested.
public V3GoogleInAppBillingService(Activity activity,
                                   AndroidFragmentApplication application,
                                   int activityRequestCode,
                                   PurchaseResponseActivityResultConverter resultConverter,
                                   AsyncExecutor asyncExecutor) {

    this(new ApplicationProxy.FragmentProxy(activity, application),
            activityRequestCode, resultConverter, asyncExecutor);
}
项目:gdx-pay    文件:ApplicationProxy.java   
public FragmentProxy(Activity activity, AndroidFragmentApplication application) {
    this.activity = activity;
    this.application = application;
}