本文整理匯總了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);
}
示例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!");
}
}
});
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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");
}
示例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);
}
示例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);
}
示例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);
}
示例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();
}
示例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();
}
示例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);
}