LibreTube/app/src/main/java/com/github/libretube/constants/PreferenceKeys.kt

116 lines
4.0 KiB
Kotlin
Raw Normal View History

2022-09-08 21:59:00 +05:30
package com.github.libretube.constants
2022-07-17 21:48:39 +05:30
/**
* keys for the shared preferences
*/
object PreferenceKeys {
2022-08-13 22:52:49 +05:30
/**
* Authentication
*/
const val AUTH_PREF_FILE = "auth"
const val TOKEN = "token"
const val USERNAME = "username"
2022-07-17 21:48:39 +05:30
/**
* General
*/
const val LANGUAGE = "language"
const val REGION = "region"
2022-07-21 01:33:09 +05:30
const val AUTO_ROTATION = "auto_rotation"
2022-08-23 19:21:00 +05:30
const val BREAK_REMINDER_TOGGLE = "break_reminder_toggle"
2022-08-10 20:30:48 +05:30
const val BREAK_REMINDER = "break_reminder"
2022-07-17 21:48:39 +05:30
/**
* Appearance
*/
const val THEME_MODE = "theme_toggle"
const val PURE_THEME = "pure_theme"
const val ACCENT_COLOR = "accent_color"
const val GRID_COLUMNS = "grid"
const val DEFAULT_TAB = "default_tab"
const val LABEL_VISIBILITY = "label_visibility"
const val HIDE_TRENDING_PAGE = "hide_trending_page"
const val APP_ICON = "icon_change"
2022-08-24 21:26:57 +05:30
const val LEGACY_SUBSCRIPTIONS = "legacy_subscriptions"
const val LEGACY_SUBSCRIPTIONS_COLUMNS = "legacy_subscriptions_columns"
2022-09-10 15:07:30 +05:30
const val ALTERNATIVE_TRENDING_LAYOUT = "trending_layout"
2022-09-12 18:00:48 +05:30
const val NEW_VIDEOS_BADGE = "new_videos_badge"
2022-07-17 21:48:39 +05:30
/**
* Instance
*/
const val FETCH_INSTANCE = "selectInstance"
const val AUTH_INSTANCE = "selectAuthInstance"
const val AUTH_INSTANCE_TOGGLE = "auth_instance_toggle"
const val CUSTOM_INSTANCE = "customInstance"
const val CLEAR_CUSTOM_INSTANCES = "clearCustomInstances"
const val LOGIN_REGISTER = "login_register"
const val DELETE_ACCOUNT = "delete_account"
const val IMPORT_SUBS = "import_from_yt"
2022-08-06 15:52:26 +05:30
const val EXPORT_SUBS = "export_subs"
2022-07-17 21:48:39 +05:30
/**
* Player
*/
const val AUTO_FULLSCREEN = "auto_fullscreen"
const val AUTO_PLAY = "autoplay"
const val RELATED_STREAMS = "related_streams_toggle"
const val PLAYBACK_SPEED = "playback_speed"
const val FULLSCREEN_ORIENTATION = "fullscreen_orientation"
const val PAUSE_ON_SCREEN_OFF = "pause_screen_off"
const val WATCH_POSITION_TOGGLE = "watch_position_toggle"
const val WATCH_HISTORY_TOGGLE = "watch_history_toggle"
const val SEARCH_HISTORY_TOGGLE = "search_history_toggle"
const val SYSTEM_CAPTION_STYLE = "system_caption_style"
2022-07-24 01:31:37 +05:30
const val CAPTION_SETTINGS = "caption_settings"
2022-07-17 21:48:39 +05:30
const val SEEK_INCREMENT = "seek_increment"
const val PLAYER_VIDEO_FORMAT = "player_video_format"
const val DEFAULT_RESOLUTION = "default_res"
2022-09-11 21:24:04 +05:30
const val DEFAULT_RESOLUTION_MOBILE = "default_res_mobile"
2022-07-17 21:48:39 +05:30
const val BUFFERING_GOAL = "buffering_goal"
2022-07-24 16:29:15 +05:30
const val PLAYER_AUDIO_FORMAT = "player_audio_format"
const val PLAYER_AUDIO_QUALITY = "player_audio_quality"
2022-09-11 21:24:04 +05:30
const val PLAYER_AUDIO_QUALITY_MOBILE = "player_audio_quality_mobile"
const val DEFAULT_SUBTITLE = "default_subtitle"
const val SKIP_BUTTONS = "skip_buttons"
2022-08-13 22:36:31 +05:30
const val PICTURE_IN_PICTURE = "picture_in_picture"
2022-08-14 21:23:51 +05:30
const val PLAYER_RESIZE_MODE = "player_resize_mode"
2022-09-17 22:19:32 +05:30
const val SB_SKIP_MANUALLY = "sb_skip_manually_key"
2022-08-09 18:37:12 +05:30
/**
* Background mode
*/
const val BACKGROUND_PLAYBACK_SPEED = "background_playback_speed"
2022-07-17 21:48:39 +05:30
2022-07-28 16:57:52 +05:30
/**
* Notifications
*/
const val NOTIFICATION_ENABLED = "notification_toggle"
2022-07-28 18:01:35 +05:30
const val CHECKING_FREQUENCY = "checking_frequency"
2022-07-31 18:06:39 +05:30
const val REQUIRED_NETWORK = "required_network"
2022-07-28 18:01:35 +05:30
const val LAST_STREAM_VIDEO_ID = "last_stream_video_id"
2022-07-28 16:57:52 +05:30
2022-07-17 21:48:39 +05:30
/**
* Advanced
*/
const val DATA_SAVER_MODE = "data_saver_mode"
2022-08-23 19:21:00 +05:30
const val MAX_IMAGE_CACHE = "image_cache_size"
2022-07-17 21:48:39 +05:30
const val RESET_SETTINGS = "reset_settings"
const val CLEAR_SEARCH_HISTORY = "clear_search_history"
const val CLEAR_WATCH_HISTORY = "clear_watch_history"
const val CLEAR_WATCH_POSITIONS = "clear_watch_positions"
2022-08-03 17:19:57 +05:30
const val SHARE_WITH_TIME_CODE = "share_with_time_code"
2022-08-13 18:42:09 +05:30
const val BACKUP_SETTINGS = "backup_settings"
const val RESTORE_SETTINGS = "restore_settings"
2022-08-01 14:52:08 +05:30
2022-08-09 18:19:34 +05:30
/**
* History
*/
const val WATCH_HISTORY_SIZE = "watch_history_size"
2022-08-01 14:52:08 +05:30
/**
* Error logs
*/
const val ERROR_LOG = "error_log"
2022-07-17 21:48:39 +05:30
}