Persistent portal restore token used to reuse screencast permission.
More...
|
| static bool | empty () |
| | Return whether the persisted value is empty.
|
| |
| static std::string | get () |
| | Return the currently wrapped value or handle.
|
| |
|
static void | load () |
| | Load persisted state from its backing store.
|
| |
|
static void | save () |
| | Save current state to its backing store.
|
| |
| static void | set (std::string_view value) |
| | Store the new value and mark it dirty for persistence.
|
| |
Persistent portal restore token used to reuse screencast permission.
◆ empty()
| static bool portal::restore_token_t::empty |
( |
| ) |
|
|
inlinestatic |
Return whether the persisted value is empty.
- Returns
- True when no portal display id has been persisted.
◆ get()
| static std::string portal::restore_token_t::get |
( |
| ) |
|
|
inlinestatic |
Return the currently wrapped value or handle.
- Returns
- Underlying native handle or object pointer.
◆ set()
| static void portal::restore_token_t::set |
( |
std::string_view | value | ) |
|
|
inlinestatic |
Store the new value and mark it dirty for persistence.
- Parameters
-
| value | Portal restore token received from xdg-desktop-portal. |
The documentation for this class was generated from the following file: