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


Java类org.researchstack.skin.task.SignUpTask代码示例

以下是Javaorg.researchstack.skin.task.SignUpTask的代码示例。类SignUpTask属于org.researchstack.skin.task包,如果您正苦于以下问题:Java SignUpTask类的具体用法?Java SignUpTask怎么用?Java SignUpTask使用的例子?那么恭喜您, 这里整理的类代码示例例程将为您提供帮助。

本文一共展示了SignUpTask的5个开源代码实例,这些例子默认根据受欢迎程度排序。您可以为喜欢的代码打CALL点赞,您的评价将有助于我们的系统推荐出更棒的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,完整代码来源: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,完整代码来源: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,完整代码来源: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,完整代码来源: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,完整代码来源:SignUpStepLayout.java



注:本文示例均筛选自Github平台上各路大神开发的开源项目,代码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。