AutomaticZenRule.Builder.SetType(Int32) Method

Definition

Sets the type of the rule.

[Android.Runtime.Register("setType", "(I)Landroid/app/AutomaticZenRule$Builder;", "", ApiSince=35)]
public Android.App.AutomaticZenRule.Builder SetType(int type);
[<Android.Runtime.Register("setType", "(I)Landroid/app/AutomaticZenRule$Builder;", "", ApiSince=35)>]
member this.SetType : int -> Android.App.AutomaticZenRule.Builder

Parameters

type
Int32

int: Value is one of the following: AutomaticZenRule.TYPE_UNKNOWN AutomaticZenRule.TYPE_OTHER AutomaticZenRule.TYPE_SCHEDULE_TIME AutomaticZenRule.TYPE_SCHEDULE_CALENDAR AutomaticZenRule.TYPE_BEDTIME AutomaticZenRule.TYPE_DRIVING AutomaticZenRule.TYPE_IMMERSIVE AutomaticZenRule.TYPE_THEATER AutomaticZenRule.TYPE_MANAGED AutomaticZenRule.TYPE_TRANSIT

Returns

This Android.App.AutomaticZenRule.Builder instance, allowing calls to be chained.

Attributes

Remarks

Sets the type of the rule.

Android reference for android.app.AutomaticZenRule.Builder.setType.

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