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