SyncRequest.Builder.SetDisallowMetered(Boolean) 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.
Sets whether this transfer is disallowed on metered networks. Throws an IllegalArgumentException if disallow is true after SetIgnoreSettings(true) has been called.
[Android.Runtime.Register("setDisallowMetered", "(Z)Landroid/content/SyncRequest$Builder;", "GetSetDisallowMetered_ZHandler")]
public virtual Android.Content.SyncRequest.Builder? SetDisallowMetered(bool disallow);
[<Android.Runtime.Register("setDisallowMetered", "(Z)Landroid/content/SyncRequest$Builder;", "GetSetDisallowMetered_ZHandler")>]
abstract member SetDisallowMetered : bool -> Android.Content.SyncRequest.Builder
override this.SetDisallowMetered : bool -> Android.Content.SyncRequest.Builder
Parameters
- disallow
- Boolean
true to disallow this transfer on metered networks. Default false.
Returns
This builder.
- Attributes
Remarks
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.
Java documentation for android.content.SyncRequest.Builder.setDisallowMetered(boolean).