当前位置: 首页>>代码示例>>Java>>正文


Java BooleanPreference类代码示例

本文整理汇总了Java中com.inkapplications.preferences.BooleanPreference的典型用法代码示例。如果您正苦于以下问题:Java BooleanPreference类的具体用法?Java BooleanPreference怎么用?Java BooleanPreference使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


BooleanPreference类属于com.inkapplications.preferences包,在下文中一共展示了BooleanPreference类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: DebugAppContainer

import com.inkapplications.preferences.BooleanPreference; //导入依赖的package包/类
@Inject public DebugAppContainer(
    @PixelGridEnabled BooleanPreference pixelGridEnabled,
    @PixelRatioEnabled BooleanPreference pixelRatioEnabled,
    @AnimationSpeed IntPreference animationSpeed,
    @ScalpelEnabled BooleanPreference scalpelEnabled,
    @ScalpelWireframeEnabled BooleanPreference scalpelWireframeEnabled,
    @SeenDebugDrawer BooleanPreference seenDebugDrawer,
    @SeenNavDrawer BooleanPreference seenNavDrawer,
    @SeenTrackerDrawer BooleanPreference seenScoreTracker
) {
  this.scalpelEnabled = scalpelEnabled;
  this.scalpelWireframeEnabled = scalpelWireframeEnabled;
  this.seenDebugDrawer = seenDebugDrawer;
  this.animationSpeed = animationSpeed;
  this.pixelGridEnabled = pixelGridEnabled;
  this.pixelRatioEnabled = pixelRatioEnabled;
  this.seenNavDrawer = seenNavDrawer;
  this.seenScoreTracker = seenScoreTracker;
}
 
开发者ID:AndrewReitz,项目名称:MagicLifeCounter,代码行数:20,代码来源:DebugAppContainer.java

示例2: DebugAppContainer

import com.inkapplications.preferences.BooleanPreference; //导入依赖的package包/类
@Inject public DebugAppContainer(
    @PixelGridEnabled BooleanPreference pixelGridEnabled,
    @PixelRatioEnabled BooleanPreference pixelRatioEnabled,
    @AnimationSpeed IntPreference animationSpeed,
    @ScalpelEnabled BooleanPreference scalpelEnabled,
    @ScalpelWireframeEnabled BooleanPreference scalpelWireframeEnabled,
    @SeenDebugDrawer BooleanPreference seenDebugDrawer
) {
  this.scalpelEnabled = scalpelEnabled;
  this.scalpelWireframeEnabled = scalpelWireframeEnabled;
  this.seenDebugDrawer = seenDebugDrawer;
  this.animationSpeed = animationSpeed;
  this.pixelGridEnabled = pixelGridEnabled;
  this.pixelRatioEnabled = pixelRatioEnabled;
}
 
开发者ID:AndrewReitz,项目名称:on-this-day,代码行数:16,代码来源:DebugAppContainer.java

示例3: onCreate

import com.inkapplications.preferences.BooleanPreference; //导入依赖的package包/类
@Override public void onCreate() {
  super.onCreate();

  /** This looks a lot sexier if you use Dagger to wire this all up  and inject into activities*/
  SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
  hasUserOpenAppBefore = new BooleanPreference(preferences, "SeenAppBefore");
  userSetMessage = new StringPreference(preferences, "UserSetMessage");
}
 
开发者ID:InkApplications,项目名称:android-preferences,代码行数:9,代码来源:SampleApplication.java

示例4: providePixelGridEnabled

import com.inkapplications.preferences.BooleanPreference; //导入依赖的package包/类
@Provides @Singleton @PixelGridEnabled
BooleanPreference providePixelGridEnabled(SharedPreferences preferences) {
  return new BooleanPreference(preferences, "debug_pixel_grid_enabled",
      DEFAULT_PIXEL_GRID_ENABLED);
}
 
开发者ID:AndrewReitz,项目名称:on-this-day,代码行数:6,代码来源:DebugDataModule.java

示例5: providePixelRatioEnabled

import com.inkapplications.preferences.BooleanPreference; //导入依赖的package包/类
@Provides @Singleton @PixelRatioEnabled
BooleanPreference providePixelRatioEnabled(SharedPreferences preferences) {
  return new BooleanPreference(preferences, "debug_pixel_ratio_enabled",
      DEFAULT_PIXEL_RATIO_ENABLED);
}
 
开发者ID:AndrewReitz,项目名称:on-this-day,代码行数:6,代码来源:DebugDataModule.java

示例6: provideSeenDebugDrawer

import com.inkapplications.preferences.BooleanPreference; //导入依赖的package包/类
@Provides @Singleton @SeenDebugDrawer
BooleanPreference provideSeenDebugDrawer(SharedPreferences preferences) {
  return new BooleanPreference(preferences, "debug_seen_debug_drawer", DEFAULT_SEEN_DEBUG_DRAWER);
}
 
开发者ID:AndrewReitz,项目名称:on-this-day,代码行数:5,代码来源:DebugDataModule.java

示例7: provideScalpelEnabled

import com.inkapplications.preferences.BooleanPreference; //导入依赖的package包/类
@Provides @Singleton @ScalpelEnabled
BooleanPreference provideScalpelEnabled(SharedPreferences preferences) {
  return new BooleanPreference(preferences, "debug_scalpel_enabled", DEFAULT_SCALPEL_ENABLED);
}
 
开发者ID:AndrewReitz,项目名称:on-this-day,代码行数:5,代码来源:DebugDataModule.java

示例8: provideScalpelWireframeEnabled

import com.inkapplications.preferences.BooleanPreference; //导入依赖的package包/类
@Provides @Singleton @ScalpelWireframeEnabled
BooleanPreference provideScalpelWireframeEnabled(SharedPreferences preferences) {
  return new BooleanPreference(preferences, "debug_scalpel_wireframe_drawer",
      DEFAULT_SCALPEL_WIREFRAME_ENABLED);
}
 
开发者ID:AndrewReitz,项目名称:on-this-day,代码行数:6,代码来源:DebugDataModule.java

示例9: provideSeenNavDrawer

import com.inkapplications.preferences.BooleanPreference; //导入依赖的package包/类
@Provides @Singleton @SeenNavDrawer BooleanPreference provideSeenNavDrawer(
    SharedPreferences sharedPreferences) {
  return new BooleanPreference(sharedPreferences, "seen_nav_drawer", false);
}
 
开发者ID:AndrewReitz,项目名称:on-this-day,代码行数:5,代码来源:DataModule.java

示例10: getHasUserOpenAppBefore

import com.inkapplications.preferences.BooleanPreference; //导入依赖的package包/类
public BooleanPreference getHasUserOpenAppBefore() {
  return hasUserOpenAppBefore;
}
 
开发者ID:InkApplications,项目名称:android-preferences,代码行数:4,代码来源:SampleApplication.java

示例11: provideSeenNavDrawer

import com.inkapplications.preferences.BooleanPreference; //导入依赖的package包/类
@Provides @Singleton @SeenNavDrawer
BooleanPreference provideSeenNavDrawer(SharedPreferences sharedPreferences) {
  return new BooleanPreference(
      sharedPreferences, "seen_navigation_drawer", DEFAULT_SEEN_NAVIGATION_DRAWER
  );
}
 
开发者ID:AndrewReitz,项目名称:MagicLifeCounter,代码行数:7,代码来源:DataModule.java

示例12: provideSeenTrackerDrawer

import com.inkapplications.preferences.BooleanPreference; //导入依赖的package包/类
@Provides @Singleton @SeenTrackerDrawer
BooleanPreference provideSeenTrackerDrawer(SharedPreferences sharedPreferences) {
  return new BooleanPreference(
      sharedPreferences, "seen_tracker_drawer", DEFAULT_SEEN_TRACKER_DRAWER
  );
}
 
开发者ID:AndrewReitz,项目名称:MagicLifeCounter,代码行数:7,代码来源:DataModule.java

示例13: provideTheme

import com.inkapplications.preferences.BooleanPreference; //导入依赖的package包/类
@Provides @Singleton @DarkTheme
BooleanPreference provideTheme(SharedPreferences sharedPreferences) {
  return new BooleanPreference(sharedPreferences, "use_dark_theme", false);
}
 
开发者ID:AndrewReitz,项目名称:MagicLifeCounter,代码行数:5,代码来源:DataModule.java


注:本文中的com.inkapplications.preferences.BooleanPreference类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。