當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。