private static void show( final FragmentWrapper fragmentWrapper, final GameRequestContent gameRequestContent) { new GameRequestDialog(fragmentWrapper).show(gameRequestContent); }
/** * Shows a {@link GameRequestDialog} to send a request, using * the passed in activity. No callback will be invoked. * * @param activity Activity hosting the dialog. * @param gameRequestContent Content of the request. */ public static void show(final Activity activity, final GameRequestContent gameRequestContent) { new GameRequestDialog(activity).show(gameRequestContent); }
gameRequestDialog = new GameRequestDialog(this); callbackManager = CallbackManager.Factory.create(); gameRequestDialog.registerCallback(
GameRequestDialog requestDialog = new GameRequestDialog(activity);