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 {
|
2023-11-09 06:32:03 +05:30
|
|
|
|
2022-08-13 22:52:49 +05:30
|
|
|
/**
|
|
|
|
* Authentication
|
|
|
|
*/
|
|
|
|
const val AUTH_PREF_FILE = "auth"
|
|
|
|
const val TOKEN = "token"
|
|
|
|
const val USERNAME = "username"
|
2022-11-21 18:42:46 +05:30
|
|
|
const val IMAGE_PROXY_URL = "image_proxy_url"
|
2022-08-13 22:52:49 +05:30
|
|
|
|
2022-07-17 21:48:39 +05:30
|
|
|
/**
|
|
|
|
* General
|
|
|
|
*/
|
|
|
|
const val LANGUAGE = "language"
|
|
|
|
const val REGION = "region"
|
2023-08-06 16:09:52 +05:30
|
|
|
const val ORIENTATION = "orientation"
|
2022-10-30 14:06:19 +05:30
|
|
|
const val NAVBAR_ITEMS = "navbar_items"
|
2022-11-24 22:08:14 +05:30
|
|
|
const val START_FRAGMENT = "start_fragment"
|
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"
|
2023-12-19 20:29:41 +05:30
|
|
|
const val GRID_COLUMNS_PORTRAIT = "grid"
|
|
|
|
const val GRID_COLUMNS_LANDSCAPE = "grid_landscape"
|
2022-07-17 21:48:39 +05:30
|
|
|
const val LABEL_VISIBILITY = "label_visibility"
|
|
|
|
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-10-29 21:03:12 +05:30
|
|
|
const val ALTERNATIVE_VIDEOS_LAYOUT = "alternative_videos_layout"
|
2022-09-12 18:00:48 +05:30
|
|
|
const val NEW_VIDEOS_BADGE = "new_videos_badge"
|
2022-10-06 18:44:06 +05:30
|
|
|
const val PLAYLISTS_ORDER = "playlists_order"
|
2023-04-27 23:42:34 +05:30
|
|
|
const val PLAYLIST_SORT_ORDER = "playlist_sort_order"
|
2023-06-01 01:13:50 +05:30
|
|
|
const val HOME_TAB_CONTENT = "home_tab_content"
|
2023-06-13 14:03:11 +05:30
|
|
|
const val SEARCH_SUGGESTIONS = "search_suggestions"
|
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"
|
2023-02-18 14:44:05 +05:30
|
|
|
const val LOGOUT = "logout"
|
2022-07-17 21:48:39 +05:30
|
|
|
const val DELETE_ACCOUNT = "delete_account"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Player
|
|
|
|
*/
|
|
|
|
const val AUTO_FULLSCREEN = "auto_fullscreen"
|
2023-06-25 13:50:06 +05:30
|
|
|
const val AUTOPLAY = "autoplay"
|
2022-07-17 21:48:39 +05:30
|
|
|
const val RELATED_STREAMS = "related_streams_toggle"
|
2023-10-05 18:29:48 +05:30
|
|
|
const val REMEMBER_PLAYBACK_SPEED = "remember_playback_speed"
|
2023-02-17 00:53:46 +05:30
|
|
|
const val CUSTOM_PLAYBACK_SPEED = "custom_playback_speed"
|
2022-07-17 21:48:39 +05:30
|
|
|
const val PLAYBACK_SPEED = "playback_speed"
|
2023-02-17 00:53:46 +05:30
|
|
|
const val BACKGROUND_PLAYBACK_SPEED = "background_playback_speed"
|
2022-07-17 21:48:39 +05:30
|
|
|
const val FULLSCREEN_ORIENTATION = "fullscreen_orientation"
|
|
|
|
const val PAUSE_ON_SCREEN_OFF = "pause_screen_off"
|
2023-02-12 17:25:31 +05:30
|
|
|
const val WATCH_POSITIONS = "watch_positions"
|
2022-07-17 21:48:39 +05:30
|
|
|
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"
|
2023-12-21 23:03:38 +05:30
|
|
|
const val RICH_CAPTION_RENDERING = "rich_caption_rendering"
|
2022-07-17 21:48:39 +05:30
|
|
|
const val SEEK_INCREMENT = "seek_increment"
|
|
|
|
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"
|
2022-07-26 23:24:29 +05:30
|
|
|
const val DEFAULT_SUBTITLE = "default_subtitle"
|
2022-08-08 20:26:18 +05:30
|
|
|
const val SKIP_BUTTONS = "skip_buttons"
|
2022-08-14 21:23:51 +05:30
|
|
|
const val PLAYER_RESIZE_MODE = "player_resize_mode"
|
2023-07-20 18:31:21 +05:30
|
|
|
const val DEARROW = "dearrow"
|
2022-11-16 23:12:57 +05:30
|
|
|
const val USE_HLS_OVER_DASH = "use_hls"
|
2022-11-22 21:29:24 +05:30
|
|
|
const val QUEUE_AUTO_INSERT_RELATED = "queue_insert_related_videos"
|
2023-10-05 17:49:19 +05:30
|
|
|
const val AUTOPLAY_PLAYLISTS = "autoplay_playlists"
|
2022-11-25 20:23:41 +05:30
|
|
|
const val PLAYER_SWIPE_CONTROLS = "player_swipe_controls"
|
2022-12-01 23:03:30 +05:30
|
|
|
const val PLAYER_PINCH_CONTROL = "player_pinch_control"
|
2022-11-27 22:20:09 +05:30
|
|
|
const val CAPTIONS_SIZE = "captions_size"
|
2022-11-27 23:11:34 +05:30
|
|
|
const val DOUBLE_TAP_TO_SEEK = "double_tap_seek"
|
2023-01-09 22:08:17 +05:30
|
|
|
const val ALTERNATIVE_PIP_CONTROLS = "alternative_pip_controls"
|
2023-01-17 23:08:39 +05:30
|
|
|
const val SKIP_SILENCE = "skip_silence"
|
2023-02-08 14:11:59 +05:30
|
|
|
const val ENABLED_VIDEO_CODECS = "video_codecs"
|
2023-02-22 16:57:03 +05:30
|
|
|
const val AUTOPLAY_COUNTDOWN = "autoplay_countdown"
|
2023-03-05 17:07:41 +05:30
|
|
|
const val LBRY_HLS = "lbry_hls"
|
2023-03-24 20:32:56 +05:30
|
|
|
const val AUTO_FULLSCREEN_SHORTS = "auto_fullscreen_shorts"
|
2023-04-02 22:03:07 +05:30
|
|
|
const val PLAY_AUTOMATICALLY = "play_automatically"
|
2023-04-10 18:23:28 +05:30
|
|
|
const val FULLSCREEN_GESTURES = "fullscreen_gestures"
|
2023-04-27 12:46:04 +05:30
|
|
|
const val UNLIMITED_SEARCH_HISTORY = "unlimited_search_history"
|
2023-06-24 23:08:39 +05:30
|
|
|
const val SB_HIGHLIGHTS = "sb_highlights"
|
2023-06-27 15:27:37 +05:30
|
|
|
const val SHOW_TIME_LEFT = "show_time_left"
|
2023-06-19 23:41:12 +05:30
|
|
|
const val FALLBACK_PIPED_PROXY = "fallback_piped_proxy"
|
2023-09-26 17:03:28 +05:30
|
|
|
const val ALLOW_PLAYBACK_DURING_CALL = "playback_during_call"
|
2024-02-05 21:52:16 +05:30
|
|
|
const val BEHAVIOR_WHEN_MINIMIZED = "behavior_when_minimized"
|
2022-08-09 18:37:12 +05:30
|
|
|
|
|
|
|
/**
|
|
|
|
* Background mode
|
|
|
|
*/
|
2023-01-14 21:29:21 +05:30
|
|
|
const val AUDIO_ONLY_MODE = "audio_only_mode"
|
2022-07-17 21:48:39 +05:30
|
|
|
|
2022-07-28 16:57:52 +05:30
|
|
|
/**
|
|
|
|
* Notifications
|
|
|
|
*/
|
|
|
|
const val NOTIFICATION_ENABLED = "notification_toggle"
|
2023-04-13 17:10:51 +05:30
|
|
|
const val SHOW_STREAM_THUMBNAILS = "show_stream_thumbnails"
|
2023-05-08 21:06:39 +05:30
|
|
|
const val SHORTS_NOTIFICATIONS = "shorts_notifications"
|
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-11-06 15:17:18 +05:30
|
|
|
const val IGNORED_NOTIFICATION_CHANNELS = "ignored_notification_channels"
|
2022-11-09 22:31:59 +05:30
|
|
|
const val NOTIFICATION_TIME_ENABLED = "notification_time"
|
|
|
|
const val NOTIFICATION_START_TIME = "notification_start_time"
|
|
|
|
const val NOTIFICATION_END_TIME = "notification_end_time"
|
2022-07-28 16:57:52 +05:30
|
|
|
|
2022-11-28 00:21:30 +05:30
|
|
|
/**
|
|
|
|
* Subscriptions
|
|
|
|
*/
|
|
|
|
const val LAST_STREAM_VIDEO_ID = "last_stream_video_id"
|
|
|
|
const val LAST_WATCHED_FEED_TIME = "last_watched_feed_time"
|
2022-12-21 16:30:58 +05:30
|
|
|
const val HIDE_WATCHED_FROM_FEED = "hide_watched_from_feed"
|
2024-01-12 20:26:17 +05:30
|
|
|
const val SELECTED_FEED_FILTERS = "filter_feed"
|
2023-02-12 22:12:51 +05:30
|
|
|
const val FEED_SORT_ORDER = "sort_oder_feed"
|
2022-11-28 00:21:30 +05:30
|
|
|
|
2022-07-17 21:48:39 +05:30
|
|
|
/**
|
|
|
|
* Advanced
|
|
|
|
*/
|
2024-02-28 18:08:03 +05:30
|
|
|
const val AUTOMATIC_UPDATE_CHECKS = "automatic_update_checks"
|
2023-01-05 22:54:59 +05:30
|
|
|
const val DATA_SAVER_MODE = "data_saver_mode_key"
|
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-11-06 00:04:10 +05:30
|
|
|
const val CONFIRM_UNSUBSCRIBE = "confirm_unsubscribing"
|
2022-11-19 14:53:09 +05:30
|
|
|
const val CLEAR_BOOKMARKS = "clear_bookmarks"
|
2024-01-06 17:58:51 +05:30
|
|
|
const val MAX_CONCURRENT_DOWNLOADS = "max_parallel_downloads"
|
2023-03-11 20:41:43 +05:30
|
|
|
const val DISABLE_VIDEO_IMAGE_PROXY = "disable_video_image_proxy"
|
2023-09-09 01:49:20 +05:30
|
|
|
const val CONTRIBUTE_TO_SB = "sb_contribute_key"
|
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"
|
2023-11-09 06:32:03 +05:30
|
|
|
const val SELECTED_HISTORY_TYPE_FILTER = "filter_history_type"
|
|
|
|
const val SELECTED_HISTORY_STATUS_FILTER = "filter_history_status"
|
2022-08-09 18:19:34 +05:30
|
|
|
|
2022-08-01 14:52:08 +05:30
|
|
|
/**
|
|
|
|
* Error logs
|
|
|
|
*/
|
|
|
|
const val ERROR_LOG = "error_log"
|
2023-08-22 22:18:27 +05:30
|
|
|
|
|
|
|
/**
|
|
|
|
* SponsorBlock UUID
|
|
|
|
*/
|
|
|
|
const val SB_USER_ID = "sb_user_id"
|
2022-07-17 21:48:39 +05:30
|
|
|
}
|