本文整理匯總了Java中com.zeroone.conceal.ConcealPrefRepository類的典型用法代碼示例。如果您正苦於以下問題:Java ConcealPrefRepository類的具體用法?Java ConcealPrefRepository怎麽用?Java ConcealPrefRepository使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ConcealPrefRepository類屬於com.zeroone.conceal包,在下文中一共展示了ConcealPrefRepository類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onCreate
import com.zeroone.conceal.ConcealPrefRepository; //導入依賴的package包/類
@Override
public void onCreate() {
super.onCreate();
try {
ConcealPrefRepository.applicationInit(this);
CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()
.setDefaultFontPath(getString(R.string.font_regular))
.setFontAttrId(R.attr.fontPath)
.build()
);
setAppComponent(DaggerAppComponent
.builder()
.appModule(new AppModule(this))
.build());
errorHandler();
}
catch (Exception e) {
e.printStackTrace();
}
}
示例2: onCreate
import com.zeroone.conceal.ConcealPrefRepository; //導入依賴的package包/類
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
concealPrefRepository = new ConcealPrefRepository.PreferencesBuilder(this)
.useDefaultPrefStorage()
.sharedPrefsBackedKeyChain(CryptoConfig.KEY_256)
.enableCrypto(false,true)
.createPassword("[email protected]")
.setPrefListener(this)
.create();
}
示例3: PreferencesRepository
import com.zeroone.conceal.ConcealPrefRepository; //導入依賴的package包/類
@SuppressLint("CommitPrefEdits")
public PreferencesRepository(Context context) {
mContext = context;
concealPrefRepository = new ConcealPrefRepository.PreferencesBuilder(mContext)
.useDefaultPrefStorage()
.sharedPrefsBackedKeyChain(CryptoConfig.KEY_256)
.enableCrypto(true,true)
.createPassword(mContext.getString(R.string.app_name))
.setFolderName(mContext.getString(R.string.app_name))
.create();
concealEditor = new ConcealPrefRepository.Editor();
}
示例4: PreferencesRepository
import com.zeroone.conceal.ConcealPrefRepository; //導入依賴的package包/類
@Inject
public PreferencesRepository(Context context) {
mContext = context;
concealPrefRepository = new ConcealPrefRepository.PreferencesBuilder(mContext)
.useDefaultPrefStorage()
.sharedPrefsBackedKeyChain(CryptoConfig.KEY_256)
.enableCrypto(true,true)
.createPassword(mContext.getString(R.string.app_name))
.setFolderName(mContext.getString(R.string.app_name))
.create();
concealEditor = new ConcealPrefRepository.Editor();
}
示例5: getUserPref
import com.zeroone.conceal.ConcealPrefRepository; //導入依賴的package包/類
public ConcealPrefRepository.UserPref getUserPref(){
return new ConcealPrefRepository.UserPref();
}
示例6: getPref
import com.zeroone.conceal.ConcealPrefRepository; //導入依賴的package包/類
public ConcealPrefRepository getPref(){
return concealPrefRepository;
}