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


Java ParseUser.enableAutomaticUser方法代碼示例

本文整理匯總了Java中com.parse.ParseUser.enableAutomaticUser方法的典型用法代碼示例。如果您正苦於以下問題:Java ParseUser.enableAutomaticUser方法的具體用法?Java ParseUser.enableAutomaticUser怎麽用?Java ParseUser.enableAutomaticUser使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.parse.ParseUser的用法示例。


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

示例1: onCreate

import com.parse.ParseUser; //導入方法依賴的package包/類
@Override
public void onCreate() {
    super.onCreate();
    ParseObject.registerSubclass(Kid.class);
    ParseObject.registerSubclass(Visit.class);
    ParseObject.registerSubclass(Attendance.class);
    Parse.initialize(new  Parse.Configuration.Builder(this)
            .applicationId("PARSE applicationId to be added here")
            .clientKey("Parse Client Id to be added here")
            .server("Parse server address to be added here").enableLocalDataStore().build());

    ParseUser.enableAutomaticUser();
    ParseACL defaultACL = new ParseACL();
    defaultACL.setPublicReadAccess(true);
    defaultACL.setPublicWriteAccess(true);
    ParseACL.setDefaultACL(defaultACL, true);
}
 
開發者ID:amir511,項目名稱:My-Sheep,代碼行數:18,代碼來源:ParseApplication.java

示例2: setUpParse

import com.parse.ParseUser; //導入方法依賴的package包/類
public static void setUpParse(Context context) {

        Parse.enableLocalDatastore(context);
        Parse.initialize(context, "SUA_APPLICATION_ID", "SUA CLIENT_KEY");
        ParseInstallation.getCurrentInstallation().saveInBackground();

        ParseUser.enableAutomaticUser();
        ParseACL defaultACL = new ParseACL();
        defaultACL.setPublicReadAccess(true);
        defaultACL.setPublicWriteAccess(true);

        ParsePush.subscribeInBackground(Constants.CHANNEL, new SaveCallback() {
            @Override
            public void done(ParseException error) {
                if (error == null) {
                    Log.i(Constants.TAG, "Successfully subscribed to Parse!");
                }else{
                    Log.i(Constants.TAG, "Error subscribed to Parse!");
                }
            }
        });
    }
 
開發者ID:rudsonlive,項目名稱:ParseLiveo,代碼行數:23,代碼來源:ParsePushApp.java

示例3: onCreate

import com.parse.ParseUser; //導入方法依賴的package包/類
@Override
public void onCreate() {
  super.onCreate();

  // Enable Local Datastore.
  Parse.enableLocalDatastore(this);

  // Add your initialization code here
  Parse.initialize(this);

  ParseUser.enableAutomaticUser();
  ParseACL defaultACL = new ParseACL();
  // Optionally enable public read access.
  // defaultACL.setPublicReadAccess(true);
  ParseACL.setDefaultACL(defaultACL, true);
}
 
開發者ID:BehrouzRiahu,項目名稱:Marketplace,代碼行數:17,代碼來源:StarterApplication.java

示例4: onCreate

import com.parse.ParseUser; //導入方法依賴的package包/類
@Override
public void onCreate() {
  super.onCreate();

  // Enable Local Datastore.
  Parse.enableLocalDatastore(this);

  // Add your initialization code here
  Parse.initialize(this, "COLFRcv3xi8naPtnDUHK4QwXpY8E49t9OuBYzKmN", "NJsKhQZ9pSJXPQ1EnMdzptxWxvLyzAp4AihbEdVp");
  ParseInstallation.getCurrentInstallation().saveInBackground();

  ParseUser.enableAutomaticUser();
  ParseACL defaultACL = new ParseACL();
  // Optionally enable public read access.
  // defaultACL.setPublicReadAccess(true);
  ParseACL.setDefaultACL(defaultACL, true);

}
 
開發者ID:Nyceane,項目名稱:HackathonPADLS,代碼行數:19,代碼來源:StarterApplication.java

示例5: onCreate

import com.parse.ParseUser; //導入方法依賴的package包/類
@Override
  public void onCreate() {
      super.onCreate();

      instance = this;

      // Perform injection
      Injector.init(getRootModule(), this);
      // Enable Local Datastore.
     // Parse.enableLocalDatastore(this);
ParseObject.registerSubclass(Device.class);
      // Add your initialization code here
Parse.initialize(this, "qKYdojVtMPjHxhNMJZ8sIlPVdKJQZYlFcaPfhKts", "lgrLheiLQXSX5v58d3XMxgBsethavM2aQMnE27m8");
ParseUser.enableRevocableSessionInBackground();
ParseUser.enableAutomaticUser();
      ParseACL defaultACL = new ParseACL();
      // Optionally enable public read access.
       defaultACL.setPublicReadAccess(true);
defaultACL.setPublicWriteAccess(true);
      ParseACL.setDefaultACL(defaultACL, true);


  }
 
開發者ID:pagesjaunes,項目名稱:androidMobileDeviceManager,代碼行數:24,代碼來源:BootstrapApplication.java

示例6: onCreate

import com.parse.ParseUser; //導入方法依賴的package包/類
@Override
public void onCreate() {
  super.onCreate();

  // Initialize Crash Reporting.
  ParseCrashReporting.enable(this);

  // Enable Local Datastore.
  Parse.enableLocalDatastore(this);

  // Add your initialization code here
    Parse.initialize(this, "ELhVHncQTjUeE1vB6JrezPlK0wvC0rWj2B79Spha", "xyR5MkJGfdRv1K59zwnBAGy6XtTuwnx2YHLf776s");


  ParseUser.enableAutomaticUser();
  ParseACL defaultACL = new ParseACL();
    ParseUser.getCurrentUser().saveInBackground();
  // Optionally enable public read access.
  defaultACL.setPublicReadAccess(true);
  ParseACL.setDefaultACL(defaultACL, true);


}
 
開發者ID:Makadu,項目名稱:Makadu_Android,代碼行數:24,代碼來源:ParseApplication.java

示例7: onCreate

import com.parse.ParseUser; //導入方法依賴的package包/類
@Override
public void onCreate() {
    super.onCreate();
    Fresco.initialize(this);
    Parse.enableLocalDatastore(this);
    Parse.initialize(this, "Qkf0ETa2dogBX3ot1BgSswy09PR6fAK6vJEMGcof", "KqV8lTovHNQQPuZ819qzCHK617uXvJIkWpxaqLkf");
    ParseUser.enableAutomaticUser();
    ParseACL defaultACL = new ParseACL();
    ParseFacebookUtils.initialize(this);
    ParseTwitterUtils.initialize("J3ncUDAVwYhOPRadv1kD7Z75G","bVSeScEZB8u7jFnLQmtk0FiCTdw1vIJJpfapTDrHDoVFLEOFCP");
}
 
開發者ID:championswimmer,項目名稱:Bookd_Android_App,代碼行數:12,代碼來源:ApplicationWrapper.java

示例8: setupParse

import com.parse.ParseUser; //導入方法依賴的package包/類
private void setupParse() {
    // Enable Local Datastore.
    Parse.enableLocalDatastore(getTargetContext());

    // Add your initialization code here
    Parse.initialize(getTargetContext(), "X9MEmCvnlX9oGRLmVhunkatw33jlF7wMPZZFw8lZ",
            "FKI8s0UnK6nT6PdGVO2XgKlcsPZnGJlI8qoPpUKa");

    ParseUser.enableAutomaticUser();
    ParseACL defaultACL = new ParseACL();
    // Optionally enable public read access.
    // defaultACL.setPublicReadAccess(true);
    ParseACL.setDefaultACL(defaultACL, true);
}
 
開發者ID:greenrobot,項目名稱:android-database-performance,代碼行數:15,代碼來源:PerfTestParse.java

示例9: onCreate

import com.parse.ParseUser; //導入方法依賴的package包/類
@Override
    public void onCreate() {
        super.onCreate();
//        Parse.enableLocalDatastore(this);
        Parse.initialize(this, "9nhyJ0OEkfqmGygl44OAYfdFdnapE27d9yj9UI5x", "7pJlc2KZgpFXZHwvoXwVeZUsEtiDoTrtjPM7EGBa");
        ParseUser.enableAutomaticUser();
        ParseACL defaultACL = new ParseACL();
        ParseFacebookUtils.initialize(this);
        ParseTwitterUtils.initialize("FfUOeQ5OBuv0qOkdHbfXCrwdk", "xQmFnUSii54eS3iUrl0uIrxfeL4EfIdFc6iyoHUDgSIVGDbauD");
        Fresco.initialize(this);
    }
 
開發者ID:teamOSC,項目名稱:Studddinv2_android,代碼行數:12,代碼來源:ApplicationWrapper.java

示例10: onCreate

import com.parse.ParseUser; //導入方法依賴的package包/類
@Override
public void onCreate() {
    super.onCreate();
    Parse.initialize(this, "ApplicationID", "ClientKey");
    ParseUser.enableAutomaticUser();
    ParseACL defaultACL = new ParseACL();
    // If you would like all objects to be private by default, remove this line.
    defaultACL.setPublicReadAccess(true);
    ParseACL.setDefaultACL(defaultACL, true);
}
 
開發者ID:safakesberk,項目名稱:Cloud_Base-To-Do-App,代碼行數:11,代碼來源:ParseApplication.java

示例11: setupParse

import com.parse.ParseUser; //導入方法依賴的package包/類
private void setupParse() {
    Parse.enableLocalDatastore(this);
    Parse.initialize(this, BaseConstants.PARSE_APP_ID, BaseConstants.PARSE_CLIENT_KEY);
    ParseUser.enableAutomaticUser();
    ParseACL defaultACL = new ParseACL();
    ParseACL.setDefaultACL(defaultACL, true);
    DataManager.registerParseObjects();
}
 
開發者ID:matthew-compton,項目名稱:PhotoGalleryPlusPlus,代碼行數:9,代碼來源:BaseApplication.java

示例12: initParse

import com.parse.ParseUser; //導入方法依賴的package包/類
private void initParse(){
    ParseObject.registerSubclass(LeaderBoard.class);
    ParseObject.registerSubclass(Match.class);
    ParseObject.registerSubclass(Playoff.class);
    ParseObject.registerSubclass(Field.class);
    ParseObject.registerSubclass(Category.class);
    ParseObject.registerSubclass(Contact.class);
    ParseObject.registerSubclass(Player.class);
    Parse.enableLocalDatastore(this);
    Parse.initialize(this);
    ParseUser.enableAutomaticUser();
}
 
開發者ID:adrielcafe,項目名稱:RecifeBomDeBola,代碼行數:13,代碼來源:App.java

示例13: onCreate

import com.parse.ParseUser; //導入方法依賴的package包/類
@Override
public void onCreate() {
  super.onCreate();

  // Enable Local Datastore.
  Parse.enableLocalDatastore(this);

  // Add your initialization code here
  Parse.initialize(this,"ZBVTjeG5g4gqFsoP9ta7cZ9a3XbiSrM61ly7XqPl", "k2gpuWav8qnp6udvQHkROJXkZVWF4JWnH6Pe8reW");


  ParseUser.enableAutomaticUser();
  ParseACL defaultACL = new ParseACL();
  // Optionally enable public read access.
  // defaultACL.setPublicReadAccess(true);
  ParseACL.setDefaultACL(defaultACL, true);


}
 
開發者ID:CarlXue,項目名稱:COMP90018,代碼行數:20,代碼來源:KiloGram.java


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