#include <settings_plugin.h>
Public Types | |
enum | PlatformBrightness { PlatformBrightness::kDark, PlatformBrightness::kLight } |
Public Member Functions | |
SettingsPlugin (BinaryMessenger *messenger, TaskRunner *task_runner) | |
virtual | ~SettingsPlugin () |
void | SendSettings () |
virtual void | StartWatching () |
virtual void | StopWatching () |
virtual void | UpdateHighContrastMode (bool is_high_contrast) |
Protected Member Functions | |
virtual bool | GetAlwaysUse24HourFormat () |
virtual float | GetTextScaleFactor () |
virtual PlatformBrightness | GetPreferredBrightness () |
virtual void | WatchPreferredBrightnessChanged () |
virtual void | WatchTextScaleFactorChanged () |
Protected Attributes | |
bool | is_high_contrast_ = false |
Definition at line 25 of file settings_plugin.h.
|
strong |
|
explicit |
Definition at line 57 of file settings_plugin.cc.
|
virtual |
Definition at line 65 of file settings_plugin.cc.
References StopWatching().
|
protectedvirtual |
Definition at line 112 of file settings_plugin.cc.
References flutter::GetUserTimeFormat(), and flutter::Prefer24HourTime().
Referenced by SendSettings().
|
protectedvirtual |
Definition at line 131 of file settings_plugin.cc.
References is_high_contrast_, kDark, and kLight.
Referenced by SendSettings().
|
protectedvirtual |
void flutter::SettingsPlugin::SendSettings | ( | ) |
Definition at line 69 of file settings_plugin.cc.
References GetAlwaysUse24HourFormat(), GetPreferredBrightness(), GetTextScaleFactor(), and kDark.
Referenced by UpdateHighContrastMode(), WatchPreferredBrightnessChanged(), and WatchTextScaleFactorChanged().
|
virtual |
Definition at line 85 of file settings_plugin.cc.
References WatchPreferredBrightnessChanged(), and WatchTextScaleFactorChanged().
|
virtual |
|
virtual |
Definition at line 169 of file settings_plugin.cc.
References is_high_contrast_, and SendSettings().
|
protectedvirtual |
Definition at line 142 of file settings_plugin.cc.
References flutter::TaskRunner::PostTask(), and SendSettings().
Referenced by StartWatching().
|
protectedvirtual |
Definition at line 156 of file settings_plugin.cc.
References flutter::TaskRunner::PostTask(), and SendSettings().
Referenced by StartWatching().
|
protected |
Definition at line 62 of file settings_plugin.h.
Referenced by GetPreferredBrightness(), and UpdateHighContrastMode().