Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
flutter::PlatformData Struct Reference

#include <platform_data.h>

Public Member Functions

 PlatformData ()
 
 ~PlatformData ()
 

Public Attributes

std::unordered_map< int64_t, ViewportMetricsviewport_metrics_for_views
 
std::string language_code
 
std::string country_code
 
std::string script_code
 
std::string variant_code
 
std::vector< std::string > locale_data
 
std::string user_settings_data = "{}"
 
std::string lifecycle_state
 
bool semantics_enabled = false
 
bool assistive_technology_enabled = false
 
int32_t accessibility_feature_flags_ = 0
 
std::vector< DisplayDatadisplays
 

Detailed Description

The struct of platform-specific data used for initializing ui.PlatformDispatcher.

The framework may request data from ui.PlatformDispatcher before the platform is properly configured. When creating the Shell, the engine sets this struct to default values until the platform is ready to send the real data.

See also:

Definition at line 30 of file platform_data.h.

Constructor & Destructor Documentation

◆ PlatformData()

flutter::PlatformData::PlatformData ( )
default

◆ ~PlatformData()

flutter::PlatformData::~PlatformData ( )
default

Member Data Documentation

◆ accessibility_feature_flags_

int32_t flutter::PlatformData::accessibility_feature_flags_ = 0

Definition at line 47 of file platform_data.h.

◆ assistive_technology_enabled

bool flutter::PlatformData::assistive_technology_enabled = false

Definition at line 46 of file platform_data.h.

◆ country_code

std::string flutter::PlatformData::country_code

Definition at line 39 of file platform_data.h.

◆ displays

std::vector<DisplayData> flutter::PlatformData::displays

Definition at line 48 of file platform_data.h.

◆ language_code

std::string flutter::PlatformData::language_code

Definition at line 38 of file platform_data.h.

◆ lifecycle_state

std::string flutter::PlatformData::lifecycle_state

Definition at line 44 of file platform_data.h.

◆ locale_data

std::vector<std::string> flutter::PlatformData::locale_data

Definition at line 42 of file platform_data.h.

◆ script_code

std::string flutter::PlatformData::script_code

Definition at line 40 of file platform_data.h.

◆ semantics_enabled

bool flutter::PlatformData::semantics_enabled = false

Definition at line 45 of file platform_data.h.

◆ user_settings_data

std::string flutter::PlatformData::user_settings_data = "{}"

Definition at line 43 of file platform_data.h.

◆ variant_code

std::string flutter::PlatformData::variant_code

Definition at line 41 of file platform_data.h.

◆ viewport_metrics_for_views

std::unordered_map<int64_t, ViewportMetrics> flutter::PlatformData::viewport_metrics_for_views

Definition at line 36 of file platform_data.h.


The documentation for this struct was generated from the following files: