Sunshine master
Self-hosted game stream host for Moonlight.
portal::restore_token_t Class Reference

Persistent portal restore token used to reuse screencast permission. More...

Static Public Member Functions

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.
 

Detailed Description

Persistent portal restore token used to reuse screencast permission.

Member Function Documentation

◆ 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
valuePortal restore token received from xdg-desktop-portal.

The documentation for this class was generated from the following file: