當前位置: 首頁>>代碼示例>>Java>>正文


Java WelcomeHelper類代碼示例

本文整理匯總了Java中com.stephentuso.welcome.WelcomeHelper的典型用法代碼示例。如果您正苦於以下問題:Java WelcomeHelper類的具體用法?Java WelcomeHelper怎麽用?Java WelcomeHelper使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


WelcomeHelper類屬於com.stephentuso.welcome包,在下文中一共展示了WelcomeHelper類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onActivityResult

import com.stephentuso.welcome.WelcomeHelper; //導入依賴的package包/類
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);

    if (requestCode == WelcomeHelper.DEFAULT_WELCOME_SCREEN_REQUEST) {
        // The key of the welcome screen is in the Intent
        //String welcomeKey = data.getStringExtra(WelcomeActivity.WELCOME_SCREEN_KEY);

        /*if (resultCode == RESULT_OK) {
            // Code here will run if the welcome screen was completed
        } else {
            // Code here will run if the welcome screen was canceled
            // In most cases you'll want to call finish() here
        }*/
        new Preferences(this).setWelcomeShown();
        Intent in = new Intent(this, MainActivity.class);
        startActivity(in);
        finish();
    }

}
 
開發者ID:othreecodes,項目名稱:WaJeun,代碼行數:22,代碼來源:SplashActivity.java

示例2: animationsFinished

import com.stephentuso.welcome.WelcomeHelper; //導入依賴的package包/類
@Override
public void animationsFinished() {

    if(new Preferences(this).isWelcomeShown()){
        //welcome screen already shown.... load main activity
        Intent in= new Intent(this,MainActivity.class);
        startActivity(in);
        finish();
    }else{
        WelcomeHelper welcomeHelper= new WelcomeHelper(this,WelcomeActivity.class);
        welcomeHelper.show(null);
    }


}
 
開發者ID:othreecodes,項目名稱:WaJeun,代碼行數:16,代碼來源:SplashActivity.java

示例3: onActivityResult

import com.stephentuso.welcome.WelcomeHelper; //導入依賴的package包/類
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {

    if (requestCode == WelcomeHelper.DEFAULT_WELCOME_SCREEN_REQUEST) {
        new QPreferences(this).setWelcomeShown();

    }
    Log.e("INstead",String.valueOf(requestCode));
    super.onActivityResult(requestCode, resultCode, data);
}
 
開發者ID:othreecodes,項目名稱:Quicksend,代碼行數:11,代碼來源:MainActivity.java

示例4: onCreate

import com.stephentuso.welcome.WelcomeHelper; //導入依賴的package包/類
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);


    if(new QPreferences(this).isWelcomeShown()){
    }else{
        WelcomeHelper welcomeHelper= new WelcomeHelper(this,WelcomeActivity.class);
        welcomeHelper.show(null);
    }



    Intent n = getIntent();
    if(n.getAction()!=null) {
        if (!n.getAction().equals("android.intent.action.MAIN")) {
            try {
                this.recievedEmail = n.getDataString().substring(7);

            } catch (Exception e) {

            }
        }
    }
    setContentView(R.layout.activity_main);
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    getSupportActionBar().setHomeAsUpIndicator(R.mipmap.ic_launcher);
    BottomNavigationView navigation = (BottomNavigationView) findViewById(R.id.navigation);
    navigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener);
    FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
    transaction.replace(R.id.content, HomeFragment.newInstance(recievedEmail));
    transaction.commit();

    permissionAsk();


    // Obtain the FirebaseAnalytics instance.
    mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
    Bundle bundle = new Bundle();
    bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, "App opened");
    bundle.putString(FirebaseAnalytics.Param.VALUE, new Date().toString());
    mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);

}
 
開發者ID:othreecodes,項目名稱:Quicksend,代碼行數:45,代碼來源:MainActivity.java

示例5: ScreenItem

import com.stephentuso.welcome.WelcomeHelper; //導入依賴的package包/類
ScreenItem(int titleRes, int descriptionRes, Class<? extends WelcomeActivity> activityClass, Integer requestCode) {
    this(titleRes, descriptionRes, new WelcomeHelper(MainActivity.this, activityClass), requestCode);
}
 
開發者ID:stephentuso,項目名稱:welcome-android,代碼行數:4,代碼來源:MainActivity.java


注:本文中的com.stephentuso.welcome.WelcomeHelper類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。