本文整理汇总了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;
}