コード例 #1
0
 /// <summary>
 /// Creates a notification channel.
 /// </summary>
 /// <param name="id">
 /// The id of the channel. Must be unique per package.
 /// The value may be truncated if it is too long.
 /// </param>
 /// <param name="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.
 /// </param>
 /// <param name="importance">
 /// The importance of the channel.
 /// This controls how interruptive notifications posted to this channel are.
 /// </param>
 public AN_NotificationChannel(string id, string name, AN_NotificationManager.Importance importance)
 {
     m_Id         = id;
     m_Name       = name;
     m_ShowBadge  = true;
     m_Importance = (int)importance;
 }
コード例 #2
0
 /// <summary>
 /// Creates a notification channel.
 /// </summary>
 /// <param name="id">
 /// The id of the channel. Must be unique per package.
 /// The value may be truncated if it is too long.
 /// </param>
 /// <param name="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.
 /// </param>
 /// <param name="importance">
 /// The importance of the channel.
 /// This controls how interruptive notifications posted to this channel are.
 /// </param>
 public AN_NotificationChannel(string id, string name, AN_NotificationManager.Importance importance)
 {
     m_id         = id;
     m_name       = name;
     m_importance = (int)importance;
 }