Package com.iizix.device.settings
Enum Class CommonSettings
- All Implemented Interfaces:
INativeSetting
,Serializable
,Comparable<CommonSettings>
,Constable
Common native settings for Android and iOS that are potentially openable on the client device using the
IOpenNativeSettings
interface. This interface is retrieved from the client session using IClientSessionGyro.getOpenNativeSettings()
. The setting in question is then opened using the interface method IOpenNativeSettings.openNativeSettings(INativeSetting, IOpenSettingSuccess, IOpenSettingFailure)
.- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionShow screen of details about the application (Android) -- Application Settings (iOS).Show screen for controlling which apps can ignore battery optimizations (Android) -- Show Settings > Battery (iOS).Show screen for configuring biometric based device security (Android) -- Show Settings > Touch ID/Face ID & Passcode (iOS).Show settings to allow configuration of Bluetooth (Anroid) -- Show Settings > Bluetooth (iOS).Show settings to allow configuration of date and time (Android) -- Show Settings > General > Date & Time (iOS).Show settings to configure input methods, in particular allowing the user to enable input methods (Android) -- Show Settings > General > Keyboard (iOS).Show settings to enable/disable input method subtypes (Android) -- Show Settings > General > Keyboard > Keyboards (iOS).Show settings to allow configuration of locale (Android) -- Show Settings > General > Language & Region (iOS).Show settings to allow configuration of current location sources (Android) -- Show Settings > Privacy > Location Services (iOS).Show Settings > Notifications (on both Android and iOS).Show settings for global search (Android) -- show Settings > Siri (iOS).Show system settings (Android) -- show Settings > General (iOS).Show settings to allow configuration of sound and volume (Android) -- show Settings > Sounds (iOS).Open the Play Store page of the current application (Android) -- Show Settings > App Store (iOS).Show settings to allow configuration of Wi-Fi (Android) -- show Settings > Wi-Fi (iOS).Field Summary
Fields inherited from interface com.iizix.device.settings.INativeSetting
TYPE_Android, TYPE_BOTH, TYPE_iOS
Method Summary
Modifier and TypeMethodDescriptionGets the internal setting name to use on the native Android client device.Gets the internal setting name to use on the native iOS client device.int
getType()
Checks if the setting is for Android, iOS or both.toString()
The string representation of the enum as"com.iizix.device.settings.CommonSettings[nativeOp]"
, where "nativeOp" is a string for the native operation when both Android and iOS use the same value, otherwise the string will be "Android=nativeOp_Android,iOS=nativeOp_iOS".static CommonSettings
Returns the enum constant of this class with the specified name.static CommonSettings[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
AppSettings
Show screen of details about the application (Android) -- Application Settings (iOS).Battery
Show screen for controlling which apps can ignore battery optimizations (Android) -- Show Settings > Battery (iOS).Biometric
Show screen for configuring biometric based device security (Android) -- Show Settings > Touch ID/Face ID & Passcode (iOS).Bluetooth
Show settings to allow configuration of Bluetooth (Anroid) -- Show Settings > Bluetooth (iOS).Date
Show settings to allow configuration of date and time (Android) -- Show Settings > General > Date & Time (iOS).Keyboard
Show settings to configure input methods, in particular allowing the user to enable input methods (Android) -- Show Settings > General > Keyboard (iOS).Keyboards
Show settings to enable/disable input method subtypes (Android) -- Show Settings > General > Keyboard > Keyboards (iOS).Locale
Show settings to allow configuration of locale (Android) -- Show Settings > General > Language & Region (iOS).Locations
Show settings to allow configuration of current location sources (Android) -- Show Settings > Privacy > Location Services (iOS).Notifications
Show Settings > Notifications (on both Android and iOS).Search
Show settings for global search (Android) -- show Settings > Siri (iOS).Settings
Show system settings (Android) -- show Settings > General (iOS).Sound
Show settings to allow configuration of sound and volume (Android) -- show Settings > Sounds (iOS).Store
Open the Play Store page of the current application (Android) -- Show Settings > App Store (iOS).WiFi
Show settings to allow configuration of Wi-Fi (Android) -- show Settings > Wi-Fi (iOS).
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
getType
public int getType()Checks if the setting is for Android, iOS or both.- Specified by:
getType
in interfaceINativeSetting
- Returns:
- The value
INativeSetting.TYPE_BOTH
.
getNativeOp_Android
Gets the internal setting name to use on the native Android client device.- Specified by:
getNativeOp_Android
in interfaceINativeSetting
- Returns:
- An internal String value that should not be used,
null
if not available for the device type.
getNativeOp_iOS
Gets the internal setting name to use on the native iOS client device.- Specified by:
getNativeOp_iOS
in interfaceINativeSetting
- Returns:
- An internal String value that should not be used,
null
if not available for the device type.
toString
The string representation of the enum as"com.iizix.device.settings.CommonSettings[nativeOp]"
, where "nativeOp" is a string for the native operation when both Android and iOS use the same value, otherwise the string will be "Android=nativeOp_Android,iOS=nativeOp_iOS".- Overrides:
toString
in classEnum<CommonSettings>
- Returns:
- The string formatted as
"com.iizix.device.settings.CommonSettings[nativeOp]"
when the "nativeOp" for both Android and iOS are the same, otherwise"com.iizix.device.settings.CommonSettings[Android=nativeOp_Android,iOS=nativeOp_iOS]"