Language

Condition Constructors

Definition

Overloads

Name Description
Condition(Parcel)

An object representing the current state of a android.app.AutomaticZenRule.

Condition(Uri, String, ConditionState)

An object representing the current state of a android.app.AutomaticZenRule.

Condition(Uri, String, ConditionState, ConditionSource)

An object representing the current state of a android.app.AutomaticZenRule.

Condition(Uri, String, String, String, Int32, ConditionState, ConditionFlags)

An object representing the current state of a android.app.AutomaticZenRule.

Condition(Uri, String, String, String, Int32, ConditionState, ConditionSource, ConditionFlags)

An object representing the current state of a android.app.AutomaticZenRule.

Condition(Parcel)

An object representing the current state of a android.app.AutomaticZenRule.

[Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "", ApiSince=24)]
public Condition(Android.OS.Parcel? source);
[<Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "", ApiSince=24)>]
new Android.Service.Notification.Condition : Android.OS.Parcel -> Android.Service.Notification.Condition

Parameters

source
Parcel

The parcel from which to read the condition.

Attributes

Remarks

Java documentation for android.service.notification.Condition.Condition(android.net.Uri, java.lang.String, int).

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

Condition(Uri, String, ConditionState)

An object representing the current state of a android.app.AutomaticZenRule.

[Android.Runtime.Register(".ctor", "(Landroid/net/Uri;Ljava/lang/String;I)V", "", ApiSince=24)]
public Condition(Android.Net.Uri? id, string? summary, Android.Service.Notification.ConditionState state);
[<Android.Runtime.Register(".ctor", "(Landroid/net/Uri;Ljava/lang/String;I)V", "", ApiSince=24)>]
new Android.Service.Notification.Condition : Android.Net.Uri * string * Android.Service.Notification.ConditionState -> Android.Service.Notification.Condition

Parameters

id
Uri

the android.app.AutomaticZenRule#getConditionId() of the zen rule

summary
String

a user visible description of the rule state

state
ConditionState

whether the mode should be activated or deactivated

Attributes

Remarks

An object representing the current state of a android.app.AutomaticZenRule.

Java documentation for android.service.notification.Condition.Condition(android.net.Uri, java.lang.String, int).

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

Condition(Uri, String, ConditionState, ConditionSource)

An object representing the current state of a android.app.AutomaticZenRule.

[Android.Runtime.Register(".ctor", "(Landroid/net/Uri;Ljava/lang/String;II)V", "", ApiSince=35)]
public Condition(Android.Net.Uri? id, string? summary, Android.Service.Notification.ConditionState state, Android.Service.Notification.ConditionSource source);
[<Android.Runtime.Register(".ctor", "(Landroid/net/Uri;Ljava/lang/String;II)V", "", ApiSince=35)>]
new Android.Service.Notification.Condition : Android.Net.Uri * string * Android.Service.Notification.ConditionState * Android.Service.Notification.ConditionSource -> Android.Service.Notification.Condition

Parameters

id
Uri

the android.app.AutomaticZenRule#getConditionId() of the zen rule

summary
String

a user visible description of the rule state

state
ConditionState

whether the mode should be activated or deactivated

source
ConditionSource

the source of, or reason for, the state change represented by this Condition

Attributes

Remarks

An object representing the current state of a android.app.AutomaticZenRule.

Java documentation for android.service.notification.Condition.Condition(android.net.Uri, java.lang.String, int, int).

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

Condition(Uri, String, String, String, Int32, ConditionState, ConditionFlags)

An object representing the current state of a android.app.AutomaticZenRule.

[Android.Runtime.Register(".ctor", "(Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;III)V", "", ApiSince=24)]
public Condition(Android.Net.Uri? id, string? summary, string? line1, string? line2, int icon, Android.Service.Notification.ConditionState state, Android.Service.Notification.ConditionFlags flags);
[<Android.Runtime.Register(".ctor", "(Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;III)V", "", ApiSince=24)>]
new Android.Service.Notification.Condition : Android.Net.Uri * string * string * string * int * Android.Service.Notification.ConditionState * Android.Service.Notification.ConditionFlags -> Android.Service.Notification.Condition

Parameters

id
Uri

the android.app.AutomaticZenRule#getConditionId() of the zen rule

summary
String

a user visible description of the rule state.

line1
String

The first line that describes when the rule ends.

line2
String

The continuation of the description of when the rule ends.

icon
Int32

The icon that represents the condition.

state
ConditionState

The state reported for the rule.

flags
ConditionFlags

The relevance bits to store with the condition.

Attributes

Remarks

Java documentation for android.service.notification.Condition.Condition(android.net.Uri, java.lang.String, int).

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

Condition(Uri, String, String, String, Int32, ConditionState, ConditionSource, ConditionFlags)

An object representing the current state of a android.app.AutomaticZenRule.

[Android.Runtime.Register(".ctor", "(Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IIII)V", "", ApiSince=35)]
public Condition(Android.Net.Uri? id, string? summary, string? line1, string? line2, int icon, Android.Service.Notification.ConditionState state, Android.Service.Notification.ConditionSource source, Android.Service.Notification.ConditionFlags flags);
[<Android.Runtime.Register(".ctor", "(Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IIII)V", "", ApiSince=35)>]
new Android.Service.Notification.Condition : Android.Net.Uri * string * string * string * int * Android.Service.Notification.ConditionState * Android.Service.Notification.ConditionSource * Android.Service.Notification.ConditionFlags -> Android.Service.Notification.Condition

Parameters

id
Uri

the android.app.AutomaticZenRule#getConditionId() of the zen rule

summary
String

a user visible description of the rule state

line1
String

a user-visible description of when the rule will end

line2
String

a continuation of the user-visible description of when the rule will end

icon
Int32

an icon representing this condition

state
ConditionState

whether the mode should be activated or deactivated

source
ConditionSource

the source of, or reason for, the state change represented by this Condition

flags
ConditionFlags

flags on this condition

Attributes

Remarks

An object representing the current state of a android.app.AutomaticZenRule.

Java documentation for android.service.notification.Condition.Condition(android.net.Uri, java.lang.String, java.lang.String, java.lang.String, int, int, int, int).

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