当前位置: 首页>>代码示例>>Java>>正文


Java SignUpTask类代码示例

本文整理汇总了Java中org.researchstack.skin.task.SignUpTask的典型用法代码示例。如果您正苦于以下问题:Java SignUpTask类的具体用法?Java SignUpTask怎么用?Java SignUpTask使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

SignUpTask类属于org.researchstack.skin.task包,在下文中一共展示了SignUpTask类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: onActivityResult

import org.researchstack.skin.task.SignUpTask; //导入依赖的package包/类
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (requestCode == REQUEST_CHANGE_EMAIL && resultCode == RESULT_OK) {
        TaskResult taskResult = (TaskResult) data.getSerializableExtra(ViewTaskActivity.EXTRA_TASK_RESULT);
        StepResult stepResult = taskResult.getStepResult(OnboardingTask.SignUpStepIdentifier);

        String newEmail = (String) stepResult.getResultForIdentifier(SignUpTask.ID_EMAIL);
        String newPassword = (String) stepResult.getResultForIdentifier(SignUpTask.ID_PASSWORD);

        // need to overwrite the values in the intent since they will be re-read in onDataReady
        Intent intent = getIntent();
        intent.putExtra(EXTRA_EMAIL, newEmail);
        intent.putExtra(EXTRA_PASSWORD, newPassword);
    } else {
        super.onActivityResult(requestCode, resultCode, data);
    }
}
 
开发者ID:ResearchStack,项目名称:ResearchStack,代码行数:18,代码来源:EmailVerificationActivity.java


示例2: SampleTaskProvider

import org.researchstack.skin.task.SignUpTask; //导入依赖的package包/类
public SampleTaskProvider(Context context)
{
    put(TASK_ID_INITIAL, createInitialTask(context));
    put(TASK_ID_CONSENT, ConsentTask.create(context, TASK_ID_CONSENT));
    put(TASK_ID_SIGN_IN, new SignInTask(context));
    put(TASK_ID_SIGN_UP, new SignUpTask(context));
}
 
开发者ID:daviszhou,项目名称:BeaconTrackerAndroid,代码行数:8,代码来源:SampleTaskProvider.java


示例3: MoleMapperTaskProvider

import org.researchstack.skin.task.SignUpTask; //导入依赖的package包/类
public MoleMapperTaskProvider(Context context)
{
    put(TASK_ID_INITIAL, MoleMapperInitialTask.create(context, TASK_ID_INITIAL));
    put(TASK_ID_CONSENT, ConsentTask.create(context, TASK_ID_CONSENT));
    put(TASK_ID_SIGN_IN, new SignInTask(context));
    put(TASK_ID_SIGN_UP, new SignUpTask(context));
}
 
开发者ID:ResearchStack,项目名称:MoleMapperAndroid,代码行数:8,代码来源:MoleMapperTaskProvider.java


示例4: onSignUpClicked

import org.researchstack.skin.task.SignUpTask; //导入依赖的package包/类
public void onSignUpClicked(View view) {
    hidePager();

    boolean hasPin = StorageAccess.getInstance().hasPinCode(this);

    SignUpTask task = (SignUpTask) TaskProvider.getInstance().get(TaskProvider.TASK_ID_SIGN_UP);
    task.setHasPasscode(hasPin);
    startActivityForResult(SignUpTaskActivity.newIntent(this, task), REQUEST_CODE_SIGN_UP);
}
 
开发者ID:ResearchStack,项目名称:ResearchStack,代码行数:10,代码来源:OnboardingActivity.java


示例5: signUp

import org.researchstack.skin.task.SignUpTask; //导入依赖的package包/类
private void signUp() {
    if (isAnswerValid()) {
        final String email = this.email.getText().toString();
        final String password = this.password.getText().toString();

        progress.animate()
                .alpha(1)
                .withStartAction(() -> {
                    progress.setVisibility(View.VISIBLE);
                    progress.setAlpha(0);
                })
                .withEndAction(() -> DataProvider.getInstance()
                        .signUp(getContext(), email, null, password)
                        .compose(ObservableUtils.applyDefault())
                        .subscribe(dataResponse -> {
                            if (dataResponse.isSuccess()) {
                                // Save Email, Username, and Password in memory
                                result.setResultForIdentifier(SignUpTask.ID_EMAIL, email);
                                result.setResultForIdentifier(SignUpTask.ID_PASSWORD, password);
                                callbacks.onSaveStep(StepCallbacks.ACTION_NEXT, step, result);
                            } else {
                                handleError(dataResponse.getMessage());
                            }

                        }, throwable -> {
                            handleError(throwable.getMessage());
                        }));


    }
}
 
开发者ID:ResearchStack,项目名称:ResearchStack,代码行数:32,代码来源:SignUpStepLayout.java



注:本文中的org.researchstack.skin.task.SignUpTask类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。