Java 类com.facebook.share.internal.NativeDialogParameters 实例源码

项目:kognitivo    文件:MessageDialog.java   
@Override
public AppCall createAppCall(final ShareContent content) {
    ShareContentValidation.validateForMessage(content);

    final AppCall appCall = createBaseAppCall();
    final boolean shouldFailOnDataError = getShouldFailOnDataError();
    final Activity activity = getActivityContext();

    DialogPresenter.setupAppCallForNativeDialog(
            appCall,
            new DialogPresenter.ParameterProvider() {
                @Override
                public Bundle getParameters() {
                    return NativeDialogParameters.create(
                            appCall.getCallId(),
                            content,
                            shouldFailOnDataError);
                }

                @Override
                public Bundle getLegacyParameters() {
                    return LegacyNativeDialogParameters.create(
                            appCall.getCallId(),
                            content,
                            shouldFailOnDataError);
                }
            },
            getFeature(content.getClass()));

    return appCall;
}
项目:kognitivo    文件:ShareDialog.java   
@Override
public AppCall createAppCall(final ShareContent content) {
    logDialogShare(getActivityContext(), content, Mode.NATIVE);

    ShareContentValidation.validateForNativeShare(content);

    final AppCall appCall = createBaseAppCall();
    final boolean shouldFailOnDataError = getShouldFailOnDataError();

    DialogPresenter.setupAppCallForNativeDialog(
            appCall,
            new DialogPresenter.ParameterProvider() {
                @Override
                public Bundle getParameters() {
                    return NativeDialogParameters.create(
                            appCall.getCallId(),
                            content,
                            shouldFailOnDataError);
                }

                @Override
                public Bundle getLegacyParameters() {
                    return LegacyNativeDialogParameters.create(
                            appCall.getCallId(),
                            content,
                            shouldFailOnDataError);
                }
            },
            getFeature(content.getClass()));

    return appCall;
}
项目:Move-Alarm_ORCA    文件:MessageDialog.java   
@Override
public AppCall createAppCall(final ShareContent content) {
    ShareContentValidation.validateForMessage(content);

    final AppCall appCall = createBaseAppCall();
    final boolean shouldFailOnDataError = getShouldFailOnDataError();
    final Activity activity = getActivityContext();

    DialogPresenter.setupAppCallForNativeDialog(
            appCall,
            new DialogPresenter.ParameterProvider() {
                @Override
                public Bundle getParameters() {
                    return NativeDialogParameters.create(
                            appCall.getCallId(),
                            content,
                            shouldFailOnDataError);
                }

                @Override
                public Bundle getLegacyParameters() {
                    return LegacyNativeDialogParameters.create(
                            appCall.getCallId(),
                            content,
                            shouldFailOnDataError);
                }
            },
            getFeature(content.getClass()));

    return appCall;
}
项目:Move-Alarm_ORCA    文件:ShareDialog.java   
@Override
public AppCall createAppCall(final ShareContent content) {
    logDialogShare(getActivityContext(), content, Mode.NATIVE);

    ShareContentValidation.validateForNativeShare(content);

    final AppCall appCall = createBaseAppCall();
    final boolean shouldFailOnDataError = getShouldFailOnDataError();

    DialogPresenter.setupAppCallForNativeDialog(
            appCall,
            new DialogPresenter.ParameterProvider() {
                @Override
                public Bundle getParameters() {
                    return NativeDialogParameters.create(
                            appCall.getCallId(),
                            content,
                            shouldFailOnDataError);
                }

                @Override
                public Bundle getLegacyParameters() {
                    return LegacyNativeDialogParameters.create(
                            appCall.getCallId(),
                            content,
                            shouldFailOnDataError);
                }
            },
            getFeature(content.getClass()));

    return appCall;
}
项目:SocioBlood    文件:MessageDialog.java   
@Override
public AppCall createAppCall(final ShareContent content) {
    ShareContentValidation.validateForMessage(content);

    final AppCall appCall = createBaseAppCall();
    final boolean shouldFailOnDataError = getShouldFailOnDataError();
    final Activity activity = getActivityContext();

    DialogPresenter.setupAppCallForNativeDialog(
            appCall,
            new DialogPresenter.ParameterProvider() {
                @Override
                public Bundle getParameters() {
                    return NativeDialogParameters.create(
                            appCall.getCallId(),
                            content,
                            shouldFailOnDataError);
                }

                @Override
                public Bundle getLegacyParameters() {
                    return LegacyNativeDialogParameters.create(
                            appCall.getCallId(),
                            content,
                            shouldFailOnDataError);
                }
            },
            getFeature(content.getClass()));

    return appCall;
}
项目:SocioBlood    文件:ShareDialog.java   
@Override
public AppCall createAppCall(final ShareContent content) {
    logDialogShare(getActivityContext(), content, Mode.NATIVE);

    ShareContentValidation.validateForNativeShare(content);

    final AppCall appCall = createBaseAppCall();
    final boolean shouldFailOnDataError = getShouldFailOnDataError();

    DialogPresenter.setupAppCallForNativeDialog(
            appCall,
            new DialogPresenter.ParameterProvider() {
                @Override
                public Bundle getParameters() {
                    return NativeDialogParameters.create(
                            appCall.getCallId(),
                            content,
                            shouldFailOnDataError);
                }

                @Override
                public Bundle getLegacyParameters() {
                    return LegacyNativeDialogParameters.create(
                            appCall.getCallId(),
                            content,
                            shouldFailOnDataError);
                }
            },
            getFeature(content.getClass()));

    return appCall;
}