mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 23:00:31 +05:30
117 lines
3.8 KiB
Kotlin
117 lines
3.8 KiB
Kotlin
package com.github.libretube.preferences
|
|
|
|
/**
|
|
* keys for the shared preferences
|
|
*/
|
|
object PreferenceKeys {
|
|
/**
|
|
* Authentication
|
|
*/
|
|
const val AUTH_PREF_FILE = "auth"
|
|
const val TOKEN = "token"
|
|
const val USERNAME = "username"
|
|
|
|
/**
|
|
* General
|
|
*/
|
|
const val LANGUAGE = "language"
|
|
const val REGION = "region"
|
|
const val AUTO_ROTATION = "auto_rotation"
|
|
const val BREAK_REMINDER_TOGGLE = "break_reminder_toggle"
|
|
const val BREAK_REMINDER = "break_reminder"
|
|
|
|
/**
|
|
* 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"
|
|
const val LEGACY_SUBSCRIPTIONS = "legacy_subscriptions"
|
|
const val LEGACY_SUBSCRIPTIONS_COLUMNS = "legacy_subscriptions_columns"
|
|
|
|
/**
|
|
* 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"
|
|
const val EXPORT_SUBS = "export_subs"
|
|
|
|
/**
|
|
* 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"
|
|
const val CAPTION_SETTINGS = "caption_settings"
|
|
const val SEEK_INCREMENT = "seek_increment"
|
|
const val PLAYER_VIDEO_FORMAT = "player_video_format"
|
|
const val DEFAULT_RESOLUTION = "default_res"
|
|
const val BUFFERING_GOAL = "buffering_goal"
|
|
const val PLAYER_AUDIO_FORMAT = "player_audio_format"
|
|
const val PLAYER_AUDIO_QUALITY = "player_audio_quality"
|
|
const val DEFAULT_SUBTITLE = "default_subtitle"
|
|
const val SKIP_BUTTONS = "skip_buttons"
|
|
const val PICTURE_IN_PICTURE = "picture_in_picture"
|
|
const val PLAYER_RESIZE_MODE = "player_resize_mode"
|
|
|
|
/**
|
|
* Background mode
|
|
*/
|
|
const val BACKGROUND_PLAYBACK_SPEED = "background_playback_speed"
|
|
|
|
/**
|
|
* Download
|
|
*/
|
|
const val DOWNLOAD_LOCATION = "download_location"
|
|
const val DOWNLOAD_FOLDER = "download_folder"
|
|
|
|
/**
|
|
* Notifications
|
|
*/
|
|
const val NOTIFICATION_ENABLED = "notification_toggle"
|
|
const val CHECKING_FREQUENCY = "checking_frequency"
|
|
const val REQUIRED_NETWORK = "required_network"
|
|
const val LAST_STREAM_VIDEO_ID = "last_stream_video_id"
|
|
|
|
/**
|
|
* Advanced
|
|
*/
|
|
const val DATA_SAVER_MODE = "data_saver_mode"
|
|
const val MAX_IMAGE_CACHE = "image_cache_size"
|
|
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"
|
|
const val SHARE_WITH_TIME_CODE = "share_with_time_code"
|
|
const val BACKUP_SETTINGS = "backup_settings"
|
|
const val RESTORE_SETTINGS = "restore_settings"
|
|
|
|
/**
|
|
* History
|
|
*/
|
|
const val WATCH_HISTORY_SIZE = "watch_history_size"
|
|
|
|
/**
|
|
* Error logs
|
|
*/
|
|
const val ERROR_LOG = "error_log"
|
|
}
|