namespace Tizen.System
{
/// <summary>
- /// The System Settings API provides APIs for sharing configuration over a system
+ /// The System Settings API provides APIs for sharing the configuration over a system.
/// </summary>
/// <remarks>
- /// System Settings API provides functions for getting the system configuration related to user preferences.
- /// The main features of the System Settings API include accessing system-wide configurations, such as ringtones, wallpapers, and etc
+ /// The System Settings API provides functions for getting the system configuration related to user preferences.
+ /// The main features of the System Settings API include accessing system-wide configurations, such as ringtones, wallpapers, and so on.
/// </remarks>
public static class SystemSettings
{
/// <summary>
- /// The file path of the current ringtone
+ /// The file path of the current ringtone.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <feature>http://tizen.org/feature/systemsetting.incoming_call</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static string IncomingCallRingtone
{
get
}
/// <summary>
- /// The file path of the current home screen wallpaper
+ /// The file path of the current home-screen wallpaper.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <feature>http://tizen.org/feature/systemsetting.home_screen</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static string WallpaperHomeScreen
{
get
}
/// <summary>
- /// The file path of the current lock screen wallpaper
+ /// The file path of the current lock-screen wallpaper.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <feature>http://tizen.org/feature/systemsetting.lock_screen</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static string WallpaperLockScreen
{
get
}
/// <summary>
- /// The current system font size
+ /// The current system font size.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static SystemSettingsFontSize FontSize
{
get
}
/// <summary>
- /// The current system font type
+ /// The current system font type.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static string FontType
{
get
}
/// <summary>
- /// Indicates whether the motion service is activated
+ /// Indicates whether the motion service is activated.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static bool MotionActivationEnabled
{
get
}
/// <summary>
- /// The file path of the current email alert ringtone
+ /// The file path of the current email alert ringtone.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <feature>http://tizen.org/feature/systemsetting.notification_email</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static string EmailAlertRingtone
{
get
}
}
/// <summary>
- /// Indicates whether the USB debugging is enabled
+ /// Indicates whether the USB debugging is enabled.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static bool UsbDebuggingEnabled
{
get
}
/// <summary>
- /// Indicates whether the 3G data network is enabled
+ /// Indicates whether the 3G data network is enabled.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static bool Data3GNetworkEnabled
{
get
}
/// <summary>
- /// Indicates lockscreen app pkg name
+ /// Indicates the lock-screen application package name.
/// </summary>
- public static string LockscreenApp
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <feature>http://tizen.org/feature/systemsetting.lock_screen</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
+ public static string LockScreenApp
{
get
{
string pkgName;
- SystemSettingsError res = (SystemSettingsError)Interop.Settings.SystemSettingsGetValueString(SystemSettingsKeys.LockscreenApp, out pkgName);
+ SystemSettingsError res = (SystemSettingsError)Interop.Settings.SystemSettingsGetValueString(SystemSettingsKeys.LockScreenApp, out pkgName);
if (res != SystemSettingsError.None)
{
- throw SystemSettingsExceptionFactory.CreateException(res, "unable to get LockscreenApp system setting.");
+ throw SystemSettingsExceptionFactory.CreateException(res, "unable to get LockScreenApp system setting.");
}
return pkgName;
}
set
{
- SystemSettingsError res = (SystemSettingsError)Interop.Settings.SystemSettingsSetValueString(SystemSettingsKeys.LockscreenApp, value);
+ SystemSettingsError res = (SystemSettingsError)Interop.Settings.SystemSettingsSetValueString(SystemSettingsKeys.LockScreenApp, value);
if (res != SystemSettingsError.None)
{
- throw SystemSettingsExceptionFactory.CreateException(res, "unable to set LockscreenApp system setting.");
+ throw SystemSettingsExceptionFactory.CreateException(res, "unable to set LockScreenApp system setting.");
}
}
}
/// <summary>
- /// The current system default font type (only support Get)
+ /// The current system default font type (only supports Get).
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static string DefaultFontType
{
get
/// <summary>
/// Indicates the current country setting in the <LANGUAGE>_<REGION> syntax.
/// The country setting is in the ISO 639-2 format,
- /// and the region setting is in the ISO 3166-1 alpha-2 format
+ /// and the region setting is in the ISO 3166-1 alpha-2 format.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static string LocaleCountry
{
get
/// <summary>
/// Indicates the current language setting in the <LANGUAGE>_<REGION> syntax.
- /// The language setting is in the ISO 639-2 format
+ /// The language setting is in the ISO 639-2 format,
/// and the region setting is in the ISO 3166-1 alpha-2 format.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static string LocaleLanguage
{
get
/// Indicates whether the 24-hour clock is used.
/// If the value is false, the 12-hour clock is used.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static bool LocaleTimeFormat24HourEnabled
{
get
}
/// <summary>
- /// Indicates the current time zone. Eg. "Pacific/Tahiti"
+ /// Indicates the current time zone, for example, Pacific/Tahiti.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static string LocaleTimeZone
{
get
}
/// <summary>
- /// Once System changes time, this event occurs to notify time change.
+ /// Once the system changes time, this event occurs to notify the time change.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static int Time
{
get
}
}
/// <summary>
- /// Indicates whether the screen lock sound is enabled on the device. ex) LCD on/off sound
+ /// Indicates whether the screen lock sound is enabled on the device, for example, the LCD on or off sound.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static bool SoundLockEnabled
{
get
/// <summary>
/// Indicates whether the device is in the silent mode.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static bool SoundSilentModeEnabled
{
get
/// <summary>
/// Indicates whether the screen touch sound is enabled on the device.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static bool SoundTouchEnabled
{
get
}
/// <summary>
- /// Indicates whether rotation control is automatic.
+ /// Indicates whether the rotation control is automatic.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static bool DisplayScreenRotationAutoEnabled
{
get
}
/// <summary>
- /// Indicates device name.
+ /// Indicates the device name.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static string DeviceName
{
get
}
}
/// <summary>
- /// Indicates whether the device user has enabled motion feature.
+ /// Indicates whether the device user has enabled the motion feature.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static bool MotionEnabled
{
get
}
/// <summary>
- /// Indicates whether Wi-Fi-related notifications are enabled on the device.
+ /// Indicates whether Wi-Fi related notifications are enabled on the device.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <feature>http://tizen.org/feature/network.wifi</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static bool NetworkWifiNotificationEnabled
{
get
/// <summary>
/// Indicates whether the device is in the flight mode.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static bool NetworkFlightModeEnabled
{
get
/// <summary>
/// Indicates the backlight time (in seconds). The following values can be used: 15, 30, 60, 120, 300, and 600.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static int ScreenBacklightTime
{
get
/// <summary>
/// Indicates the file path of the current notification tone set by the user.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <feature>http://tizen.org/feature/systemsetting.incoming_call</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static string SoundNotification
{
get
/// <summary>
/// Indicates the time period for notification repetitions.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static int SoundNotificationRepetitionPeriod
{
get
}
/// <summary>
- /// Indicates the current lock state
+ /// Indicates the current lock state.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static SystemSettingsIdleLockState LockState
{
get
}
/// <summary>
- /// The current system ADS ID
+ /// The current system ADS ID.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static string AdsId
{
get
/// <summary>
/// Indicates the time period for notification repetitions.
/// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <feature>http://tizen.org/feature/network.telephony</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static SystemSettingsUdsState UltraDataSave
{
get
}
}
+ /// <summary>
+ /// Indicates whether the accessibility TTS is enabled on the device.
+ /// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
+ public static bool AccessibilityTtsEnabled
+ {
+ get
+ {
+ bool isAccessibilityTTSEnabled;
+ SystemSettingsError res = (SystemSettingsError)Interop.Settings.SystemSettingsGetValueBool(SystemSettingsKeys.AccessibilityTtsEnabled, out isAccessibilityTTSEnabled);
+ if (res != SystemSettingsError.None)
+ {
+ throw SystemSettingsExceptionFactory.CreateException(res, "unable to get AccessibilityTTS system setting value.");
+ }
+ return isAccessibilityTTSEnabled;
+ }
+ }
private static readonly Interop.Settings.SystemSettingsChangedCallback s_incomingCallRingtoneChangedCallback = (SystemSettingsKeys key, IntPtr userData) =>
};
private static event EventHandler<IncomingCallRingtoneChangedEventArgs> s_incomingCallRingtoneChanged;
/// <summary>
- /// IncomingCallRingtoneChanged event is triggered when the file path of the incoming ringtone is changed
+ /// The IncomingCallRingtoneChanged event is triggered when the file path of the incoming ringtone is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A IncomingCallRingtoneChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <feature>http://tizen.org/feature/systemsetting.incoming_call</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<IncomingCallRingtoneChangedEventArgs> IncomingCallRingtoneChanged
{
add
};
private static event EventHandler<WallpaperHomeScreenChangedEventArgs> s_wallpaperHomeScreenChanged;
/// <summary>
- /// WallpaperHomeScreenChanged event is triggered when the file path of the current home screen wallpaper is changed
+ /// THe WallpaperHomeScreenChanged event is triggered when the file path of the current home screen wallpaper is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A WallpaperHomeScreenChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <feature>http://tizen.org/feature/systemsetting.home_screen</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<WallpaperHomeScreenChangedEventArgs> WallpaperHomeScreenChanged
{
add
};
private static event EventHandler<WallpaperLockScreenChangedEventArgs> s_wallpaperLockScreenChanged;
/// <summary>
- /// WallpaperLockScreenChanged event is triggered when the file path of the current lock screen wallpaper is changed
+ /// The WallpaperLockScreenChanged event is triggered when the file path of the current lock screen wallpaper is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A WallpaperLockScreenChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <feature>http://tizen.org/feature/systemsetting.lock_screen</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<WallpaperLockScreenChangedEventArgs> WallpaperLockScreenChanged
{
add
};
private static event EventHandler<FontSizeChangedEventArgs> s_fontSizeChanged;
/// <summary>
- /// FontSizeChanged event is triggered when the current system font size is changed
+ /// The FontSizeChanged event is triggered when the current system font size is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A FontSizeChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<FontSizeChangedEventArgs> FontSizeChanged
{
add
};
private static event EventHandler<FontTypeChangedEventArgs> s_fontTypeChanged;
/// <summary>
- /// FontTypeChanged event is triggered when the current system font type is changed
+ /// The FontTypeChanged event is triggered when the current system font type is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A FontTypeChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<FontTypeChangedEventArgs> FontTypeChanged
{
add
};
private static event EventHandler<MotionActivationSettingChangedEventArgs> s_motionActivationChanged;
/// <summary>
- /// MotionActivationChanged event is triggered when the motion service status is changed
+ /// The MotionActivationChanged event is triggered when the motion service status is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A MotionActivationChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<MotionActivationSettingChangedEventArgs> MotionActivationSettingChanged
{
add
};
private static event EventHandler<EmailAlertRingtoneChangedEventArgs> s_emailAlertRingtoneChanged;
/// <summary>
- /// EmailAlertRingtoneChanged event is triggered when the file path of the current email alert ringtone is changed
+ /// The EmailAlertRingtoneChanged event is triggered when the file path of the current email alert ringtone is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A EmailAlertRingtoneChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <feature>http://tizen.org/feature/systemsetting.notification_email</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<EmailAlertRingtoneChangedEventArgs> EmailAlertRingtoneChanged
{
add
};
private static event EventHandler<UsbDebuggingSettingChangedEventArgs> s_usbDebuggingSettingChanged;
/// <summary>
- /// UsbDebuggingSettingChangedEventArgs event is triggered when the USB debugging status is changed
+ /// The UsbDebuggingSettingChangedEventArgs event is triggered when the USB debugging status is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A UsbDebuggingSettingChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<UsbDebuggingSettingChangedEventArgs> UsbDebuggingSettingChanged
{
add
};
private static event EventHandler<Data3GNetworkSettingChangedEventArgs> s_data3GNetworkSettingChanged;
/// <summary>
- /// Data3GNetworkSettingChanged event is triggered when the 3G data network status is changed
+ /// The Data3GNetworkSettingChanged event is triggered when the 3G data network status is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A Data3GNetworkSettingChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<Data3GNetworkSettingChangedEventArgs> Data3GNetworkSettingChanged
{
add
private static readonly Interop.Settings.SystemSettingsChangedCallback s_lockscreenAppChangedCallback = (SystemSettingsKeys key, IntPtr userData) =>
{
- string lockScreenApp = SystemSettings.LockscreenApp;
- LockscreenAppChangedEventArgs eventArgs = new LockscreenAppChangedEventArgs(lockScreenApp);
+ string lockScreenApp = SystemSettings.LockScreenApp;
+ LockScreenAppChangedEventArgs eventArgs = new LockScreenAppChangedEventArgs(lockScreenApp);
s_lockscreenAppChanged?.Invoke(null, eventArgs);
};
- private static event EventHandler<LockscreenAppChangedEventArgs> s_lockscreenAppChanged;
+ private static event EventHandler<LockScreenAppChangedEventArgs> s_lockscreenAppChanged;
/// <summary>
- /// LockscreenAppChanged event is triggered when the lockscreen app pkg name is changed
+ /// The LockScreenAppChanged event is triggered when the lockscreen application package name is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A LockscreenAppChangedEventArgs object that contains the key & changed value</param>
- public static event EventHandler<LockscreenAppChangedEventArgs> LockscreenAppChanged
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <feature>http://tizen.org/feature/systemsetting.lock_screen</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
+ public static event EventHandler<LockScreenAppChangedEventArgs> LockScreenAppChanged
{
add
{
if (s_lockscreenAppChanged == null)
{
- SystemSettingsError ret = (SystemSettingsError)Interop.Settings.SystemSettingsSetCallback(SystemSettingsKeys.LockscreenApp, s_lockscreenAppChangedCallback, IntPtr.Zero);
+ SystemSettingsError ret = (SystemSettingsError)Interop.Settings.SystemSettingsSetCallback(SystemSettingsKeys.LockScreenApp, s_lockscreenAppChangedCallback, IntPtr.Zero);
if (ret != SystemSettingsError.None)
{
throw SystemSettingsExceptionFactory.CreateException(ret, "Error in callback handling");
s_lockscreenAppChanged -= value;
if (s_lockscreenAppChanged == null)
{
- SystemSettingsError ret = (SystemSettingsError)Interop.Settings.SystemSettingsRemoveCallback(SystemSettingsKeys.LockscreenApp);
+ SystemSettingsError ret = (SystemSettingsError)Interop.Settings.SystemSettingsRemoveCallback(SystemSettingsKeys.LockScreenApp);
if (ret != SystemSettingsError.None)
{
throw SystemSettingsExceptionFactory.CreateException(ret, "Error in callback handling");
};
private static event EventHandler<LocaleCountryChangedEventArgs> s_localeCountryChanged;
/// <summary>
- /// LocaleCountryChanged event is triggered when the current country setting in the <LANGUAGE>_<REGION> syntax, is changed
+ /// The LocaleCountryChanged event is triggered when the current country setting in the <LANGUAGE>_<REGION> syntax, is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A LocaleCountryChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<LocaleCountryChangedEventArgs> LocaleCountryChanged
{
add
};
private static event EventHandler<LocaleLanguageChangedEventArgs> s_localeLanguageChanged;
/// <summary>
- /// LocaleLanguageChanged event is triggered when the current language setting in the <LANGUAGE>_<REGION> syntax, is changed
+ /// The LocaleLanguageChanged event is triggered when the current language setting in the <LANGUAGE>_<REGION> syntax, is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A LocaleLanguageChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<LocaleLanguageChangedEventArgs> LocaleLanguageChanged
{
add
};
private static event EventHandler<LocaleTimeFormat24HourSettingChangedEventArgs> s_localeTimeFormat24HourChanged;
/// <summary>
- /// LocaleTimeFormat24HourChanged event is triggered when the time format is changed
+ /// The LocaleTimeFormat24HourChanged event is triggered when the time format is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A LocaleTimeFormat24HourChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<LocaleTimeFormat24HourSettingChangedEventArgs> LocaleTimeFormat24HourSettingChanged
{
add
};
private static event EventHandler<LocaleTimeZoneChangedEventArgs> s_localeTimeZoneChanged;
/// <summary>
- /// LocaleTimeZoneChanged event is triggered when the current time zone is changed
+ /// The LocaleTimeZoneChanged event is triggered when the current time zone is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A LocaleTimeZoneChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<LocaleTimeZoneChangedEventArgs> LocaleTimeZoneChanged
{
add
private static readonly Interop.Settings.SystemSettingsChangedCallback s_timeChangedCallback = (SystemSettingsKeys key, IntPtr userData) =>
{
-
+
int time = SystemSettings.Time;
TimeChangedEventArgs eventArgs = new TimeChangedEventArgs(time);
s_timeChanged?.Invoke(null, eventArgs);
};
private static event EventHandler<TimeChangedEventArgs> s_timeChanged;
/// <summary>
- /// TimeChanged event is triggered when the system time is changed
+ /// The TimeChanged event is triggered when the system time is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A TimeChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<TimeChangedEventArgs> TimeChanged
{
add
};
private static event EventHandler<SoundLockSettingChangedEventArgs> s_soundLockChanged;
/// <summary>
- /// SoundLockChanged event is triggered when the screen lock sound enabled status is changed
+ /// The SoundLockChanged event is triggered when the screen lock sound enabled status is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A SoundLockChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<SoundLockSettingChangedEventArgs> SoundLockSettingChanged
{
add
};
private static event EventHandler<SoundSilentModeSettingChangedEventArgs> s_soundSilentModeChanged;
/// <summary>
- /// SoundSilentModeChanged event is triggered when the silent mode status is changed
+ /// The SoundSilentModeChanged event is triggered when the silent mode status is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A SoundSilentModeChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<SoundSilentModeSettingChangedEventArgs> SoundSilentModeSettingChanged
{
add
};
private static event EventHandler<SoundTouchSettingChangedEventArgs> s_soundTouchChanged;
/// <summary>
- /// SoundTouchChanged event is triggered when the screen touch sound enabled status is changed
+ /// THe SoundTouchChanged event is triggered when the screen touch sound enabled status is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A SoundTouchChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<SoundTouchSettingChangedEventArgs> SoundTouchSettingChanged
{
add
{
s_soundTouchChanged -= value;
if (s_soundTouchChanged == null)
+
{
SystemSettingsError ret = (SystemSettingsError)Interop.Settings.SystemSettingsRemoveCallback(SystemSettingsKeys.SoundTouchEnabled);
if (ret != SystemSettingsError.None)
};
private static event EventHandler<DisplayScreenRotationAutoSettingChangedEventArgs> s_displayScreenRotationAutoChanged;
/// <summary>
- /// DisplayScreenRotationAutoChanged event is triggered when the automatic rotation control status is changed
+ /// The DisplayScreenRotationAutoChanged event is triggered when the automatic rotation control status is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A DisplayScreenRotationAutoChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<DisplayScreenRotationAutoSettingChangedEventArgs> DisplayScreenRotationAutoSettingChanged
{
add
};
private static event EventHandler<DeviceNameChangedEventArgs> s_deviceNameChanged;
/// <summary>
- /// DeviceNameChanged event is triggered when the device name is changed
+ /// The DeviceNameChanged event is triggered when the device name is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A DeviceNameChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<DeviceNameChangedEventArgs> DeviceNameChanged
{
add
};
private static event EventHandler<MotionSettingChangedEventArgs> s_motionSettingChanged;
/// <summary>
- /// MotionSettingChanged event is triggered when the motion feature enabled status is changed
+ /// The MotionSettingChanged event is triggered when the motion feature enabled status is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A MotionSettingChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<MotionSettingChangedEventArgs> MotionSettingChanged
{
add
};
private static event EventHandler<NetworkWifiNotificationSettingChangedEventArgs> s_networkWifiNotificationChanged;
/// <summary>
- /// NetworkWifiNotificationChanged event is triggered when the Wi-Fi-related notifications enabled status is changed
+ /// The NetworkWifiNotificationChanged event is triggered when the WiFi-related notifications enabled status is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A NetworkWifiNotificationChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <feature>http://tizen.org/feature/network.wifi</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<NetworkWifiNotificationSettingChangedEventArgs> NetworkWifiNotificationSettingChanged
{
add
};
private static event EventHandler<NetworkFlightModeSettingChangedEventArgs> s_networkFlightModeChanged;
/// <summary>
- /// NetworkFlightModeChanged event is triggered when the flight mode status is changed
+ /// The NetworkFlightModeChanged event is triggered when the flight mode status is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A NetworkFlightModeChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<NetworkFlightModeSettingChangedEventArgs> NetworkFlightModeSettingChanged
{
add
};
private static event EventHandler<ScreenBacklightTimeChangedEventArgs> s_screenBacklightTimeChanged;
/// <summary>
- /// ScreenBacklightTimeChanged event is triggered when the backlight time is changed.
+ /// THe ScreenBacklightTimeChanged event is triggered when the backlight time is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A ScreenBacklightTimeChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<ScreenBacklightTimeChangedEventArgs> ScreenBacklightTimeChanged
{
add
};
private static event EventHandler<SoundNotificationChangedEventArgs> s_soundNotificationChanged;
/// <summary>
- /// SoundNotificationChanged event is triggered when the file path of the current notification tone set by the user is changed
+ /// The SoundNotificationChanged event is triggered when the file path of the current notification tone set by the user is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A SoundNotificationChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <feature>http://tizen.org/feature/systemsetting.incoming_call</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<SoundNotificationChangedEventArgs> SoundNotificationChanged
{
add
};
private static event EventHandler<SoundNotificationRepetitionPeriodChangedEventArgs> s_soundNotificationRepetitionPeriodChanged;
/// <summary>
- /// SoundNotificationRepetitionPeriodChanged event is triggered when the time period for notification repetitions is changed
+ /// The SoundNotificationRepetitionPeriodChanged event is triggered when the time period for notification repetitions is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A SoundNotificationRepetitionPeriodChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<SoundNotificationRepetitionPeriodChangedEventArgs> SoundNotificationRepetitionPeriodChanged
{
add
};
private static event EventHandler<LockStateChangedEventArgs> s_lockStateChanged;
/// <summary>
- /// LockStateChanged event is triggered when the current lock state is changed
+ /// The LockStateChanged event is triggered when the current lock state is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A LockStateChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<LockStateChangedEventArgs> LockStateChanged
{
add
};
private static event EventHandler<AdsIdChangedEventArgs> s_adsIdChanged;
/// <summary>
- /// AdsIdChanged event is triggered when the current ADS ID state is changed
+ /// The AdsIdChanged event is triggered when the current ADS ID state is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A AdsIdChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<AdsIdChangedEventArgs> AdsIdChanged
{
add
};
private static event EventHandler<UltraDataSaveChangedEventArgs> s_ultraDataSaveChanged;
/// <summary>
- /// UltraDataSaveChanged event is triggered when the current Ultra Data Save state is changed
+ /// The UltraDataSaveChanged event is triggered when the current Ultra Data Save state is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A UltraDataSaveChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <feature>http://tizen.org/feature/network.telephony</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<UltraDataSaveChangedEventArgs> UltraDataSaveChanged
{
add
};
private static event EventHandler<UltraDataSavePackageListChangedEventArgs> s_ultraDataSavePackageListChanged;
/// <summary>
- /// UltraDataSavePackageListChanged event is triggered when the current ADS ID state is changed
+ /// The UltraDataSavePackageListChanged event is triggered when the current ADS ID state is changed.
/// </summary>
- /// <param name="sender"></param>
- /// <param name="e">A UltraDataSavePackageListChangedEventArgs object that contains the key & changed value</param>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <feature>http://tizen.org/feature/network.telephony</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
public static event EventHandler<UltraDataSavePackageListChangedEventArgs> UltraDataSavePackageListChanged
{
add
}
}
}
+
+ private static readonly Interop.Settings.SystemSettingsChangedCallback s_accessibilityTtsChangedCallback = (SystemSettingsKeys key, IntPtr userData) =>
+ {
+ bool accessibilityTts = SystemSettings.AccessibilityTtsEnabled;
+ AccessibilityTtsSettingChangedEventArgs eventArgs = new AccessibilityTtsSettingChangedEventArgs(accessibilityTts);
+ s_accessibilityTtsChanged?.Invoke(null, eventArgs);
+ };
+ private static event EventHandler<AccessibilityTtsSettingChangedEventArgs> s_accessibilityTtsChanged;
+ /// <summary>
+ /// THe AccessibilityTtsChanged event is triggered when the screen touch sound enabled status is changed.
+ /// </summary>
+ /// <privilege>http://tizen.org/privilege/systemsettings.admin</privilege>
+ /// <privlevel>platform</privlevel>
+ /// <feature>http://tizen.org/feature/systemsetting</feature>
+ /// <exception cref="ArgumentException">Invalid Argument</exception>
+ /// <exception cref="NotSupportedException">Not Supported feature</exception>
+ /// <exception cref="InvalidOperationException">Invalid operation</exception>
+ /// <exception cref="UnauthorizedAccessException">Thrown when application does not have privilege to access this method.</exception>
+ public static event EventHandler<AccessibilityTtsSettingChangedEventArgs> AccessibilityTtsSettingChanged
+ {
+ add
+ {
+ if (s_accessibilityTtsChanged == null)
+ {
+ SystemSettingsError ret = (SystemSettingsError)Interop.Settings.SystemSettingsSetCallback(SystemSettingsKeys.AccessibilityTtsEnabled, s_accessibilityTtsChangedCallback, IntPtr.Zero);
+ if (ret != SystemSettingsError.None)
+ {
+ throw SystemSettingsExceptionFactory.CreateException(ret, "Error in callback handling");
+ }
+ }
+ s_accessibilityTtsChanged += value;
+ }
+
+ remove
+ {
+ s_accessibilityTtsChanged -= value;
+ if (s_accessibilityTtsChanged == null)
+
+ {
+ SystemSettingsError ret = (SystemSettingsError)Interop.Settings.SystemSettingsRemoveCallback(SystemSettingsKeys.AccessibilityTtsEnabled);
+ if (ret != SystemSettingsError.None)
+ {
+ throw SystemSettingsExceptionFactory.CreateException(ret, "Error in callback handling");
+ }
+ }
+ }
+ }
+
}
}