Show / Hide Table of Contents

Class AN_NotificationChannel

A representation of settings that apply to a collection of similarly themed notifications.

Inheritance
System.Object
AN_NotificationChannel
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: SA.Android.App
Assembly: cs.temp.dll.dll
Syntax
public class AN_NotificationChannel

Constructors

AN_NotificationChannel(String, String, AN_NotificationManager.Importance)

Creates a notification channel.

Declaration
public AN_NotificationChannel(string id, string name, AN_NotificationManager.Importance importance)
Parameters
Type Name Description
System.String id

The id of the channel. Must be unique per package. The value may be truncated if it is too long.

System.String name

The user visible name of the channel. You can rename this channel when the system locale changes by listening for the Intent.ACTION_LOCALE_CHANGED broadcast. The recommended maximum length is 40 characters; the value may be truncated if it is too long.

AN_NotificationManager.Importance importance

The importance of the channel. This controls how interruptive notifications posted to this channel are.

Fields

ANDROID_NATIVE_DEFAULT_CHANNEL_ID

This channel id will be used by plugin in case you havne't spesifayed any channell id with your request.

Declaration
public static string ANDROID_NATIVE_DEFAULT_CHANNEL_ID
Field Value
Type Description
System.String

DEFAULT_CHANNEL_ID

The id of the default channel for an app. This id is reserved by the system.

All notifications posted from apps targeting N_MR1 or earlier without a notification channel specified are posted to this channel.

Declaration
public static string DEFAULT_CHANNEL_ID
Field Value
Type Description
System.String

Properties

CanShowBadge

Returns whether notifications posted to this channel can appear as badges in a Launcher application.

Declaration
public bool CanShowBadge { get; }
Property Value
Type Description
System.Boolean

Description

Description of this channel.

Declaration
public string Description { get; set; }
Property Value
Type Description
System.String

Id

The id of this channel.

Declaration
public string Id { get; }
Property Value
Type Description
System.String

Importance

The user specified importance

Declaration
public AN_NotificationManager.Importance Importance { get; }
Property Value
Type Description
AN_NotificationManager.Importance

Name

The user visible name of this channel.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

Sound

Declaration
public string Sound { get; set; }
Property Value
Type Description
System.String

Methods

SetShowBadge(Boolean)

Sets whether notifications posted to this channel can appear as application icon badges in a Launcher. Only modifiable before the channel is submitted to CreateNotificationChannel(AN_NotificationChannel)

Declaration
public void SetShowBadge(bool showBadge)
Parameters
Type Name Description
System.Boolean showBadge

true if badges should be allowed to be shown.

In This Article
Back to top Generated by DocFX