本文整理匯總了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;
}
示例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;
}
示例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");
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例9: provideSeenNavDrawer
import com.inkapplications.preferences.BooleanPreference; //導入依賴的package包/類
@Provides @Singleton @SeenNavDrawer BooleanPreference provideSeenNavDrawer(
SharedPreferences sharedPreferences) {
return new BooleanPreference(sharedPreferences, "seen_nav_drawer", false);
}
示例10: getHasUserOpenAppBefore
import com.inkapplications.preferences.BooleanPreference; //導入依賴的package包/類
public BooleanPreference getHasUserOpenAppBefore() {
return hasUserOpenAppBefore;
}
示例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
);
}
示例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
);
}
示例13: provideTheme
import com.inkapplications.preferences.BooleanPreference; //導入依賴的package包/類
@Provides @Singleton @DarkTheme
BooleanPreference provideTheme(SharedPreferences sharedPreferences) {
return new BooleanPreference(sharedPreferences, "use_dark_theme", false);
}