Settings.Secure.PutFloat(ContentResolver, String, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Convenience function for updating a single settings value as a floating point number.
[Android.Runtime.Register("putFloat", "(Landroid/content/ContentResolver;Ljava/lang/String;F)Z", "")]
public static bool PutFloat (Android.Content.ContentResolver? cr, string? name, float value);
[<Android.Runtime.Register("putFloat", "(Landroid/content/ContentResolver;Ljava/lang/String;F)Z", "")>]
static member PutFloat : Android.Content.ContentResolver * string * single -> bool
Parameters
The ContentResolver to access.
- name
- String
The name of the setting to modify.
- value
- Single
The new value for the setting.
Returns
true if the value was set, false on database errors
- Attributes
Remarks
Convenience function for updating a single settings value as a floating point number. This will either create a new entry in the table if the given name does not exist, or modify the value of the existing row with that name. Note that internally setting values are always stored as strings, so this function converts the given value to a string before storing it.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.