Udostępnij za pośrednictwem


Settings.System.PutConfiguration(ContentResolver, Configuration) Method

Definition

Convenience function to write a batch of configuration-related settings from a Configuration object.

[Android.Runtime.Register("putConfiguration", "(Landroid/content/ContentResolver;Landroid/content/res/Configuration;)Z", "")]
public static bool PutConfiguration (Android.Content.ContentResolver? cr, Android.Content.Res.Configuration? config);
[<Android.Runtime.Register("putConfiguration", "(Landroid/content/ContentResolver;Landroid/content/res/Configuration;)Z", "")>]
static member PutConfiguration : Android.Content.ContentResolver * Android.Content.Res.Configuration -> bool

Parameters

cr
ContentResolver

The ContentResolver to access.

config
Configuration

The settings to write.

Returns

true if the values were set, false on database errors

Attributes

Remarks

Convenience function to write a batch of configuration-related settings from a Configuration object.

Java documentation for android.provider.Settings.System.putConfiguration(android.content.ContentResolver, android.content.res.Configuration).

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.

Applies to