Condition Constructors
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.
Overloads
Condition(Parcel) |
An object representing the current state of a |
Condition(Uri, String, ConditionState) |
An object representing the current state of a |
Condition(Uri, String, ConditionState, ConditionSource) |
An object representing the current state of a |
Condition(Uri, String, String, String, Int32, ConditionState, ConditionFlags) |
An object representing the current state of a |
Condition(Uri, String, String, String, Int32, ConditionState, ConditionSource, ConditionFlags) |
An object representing the current state of a |
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
- 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.
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
.
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
.
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
- line2
- String
- icon
- Int32
- state
- ConditionState
- flags
- ConditionFlags
- 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.
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
.
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.