public AppCall createAppCall(final LikeContent content) { AppCall appcall = createBaseAppCall(); class _cls1 implements com.facebook.internal.DialogPresenter.ParameterProvider { final LikeDialog.NativeHandler this$1; final LikeContent val$content; public Bundle getLegacyParameters() { Log.e("LikeDialog", "Attempting to present the Like Dialog with an outdated Facebook app on the device"); return new Bundle(); } public Bundle getParameters() { return LikeDialog.access$200(content); } _cls1() { this$1 = LikeDialog.NativeHandler.this; content = likecontent; super(); } } DialogPresenter.setupAppCallForNativeDialog(appcall, new _cls1(), LikeDialog.access$300()); return appcall; }
@Override public AppCall createAppCall(final AppInviteContent content) { final AppCall appCall = createBaseAppCall(); DialogPresenter.setupAppCallForNativeDialog( appCall, new DialogPresenter.ParameterProvider() { @Override public Bundle getParameters() { return createParameters(content); } @Override public Bundle getLegacyParameters() { // App Invites are not supported with legacy fb4a devices. // We should never get here Log.e( TAG, "Attempting to present the AppInviteDialog with " + "an outdated Facebook app on the device"); return new Bundle(); } }, getFeature()); return appCall; }
@Override public AppCall createAppCall(final AppInviteContent content) { final AppCall appCall = createBaseAppCall(); DialogPresenter.setupAppCallForWebFallbackDialog( appCall, createParameters(content), getFeature()); return appCall; }
@Override public AppCall createAppCall(final String content) { AppCall appCall = createBaseAppCall(); Bundle params = new Bundle(); params.putString(ShareConstants.WEB_DIALOG_PARAM_ID, content); DialogPresenter.setupAppCallForWebDialog(appCall, JOIN_GAME_GROUP_DIALOG, params); return appCall; }
private static boolean canShowWebFallback() { return DialogPresenter.canPresentWebFallbackDialogWithFeature(getFeature()); }
private static boolean canShowNativeDialog() { return DialogPresenter.canPresentNativeDialogWithFeature(getFeature()); }