AMapNotificationForAndroid class

Constructors

AMapNotificationForAndroid({required int notificationId, required String title, required String content, required String channelId, required String channelName, String? description, bool enableLights = false, bool showBadge = false, Color lightColor = Colors.blue, LockscreenVisibility lockscreenVisibility = LockscreenVisibility.private, NotificationImportance importance = NotificationImportance.none})

Properties

channelId String
channelIdchannelName均不会null时才会创建NotificationChannel,以下参数才会生效 Notification channel id
final
channelName String
Notification channel name
final
content String
通知的内容文本,显示在通知栏的下方
final
description String?
通知渠道的描述,用于向用户解释该通知渠道的用途和特点
final
enableLights bool
是否在桌面icon右上角展示小圆点
final
hashCode int
The hash code for this object.
no setterinherited
importance NotificationImportance
通知渠道的重要性级别,用于确定通知的声音、震动等行为
final
lightColor Color
小圆点颜色
final
lockscreenVisibility LockscreenVisibility
通知在锁屏界面上的可见性
final
notificationId int
通知栏ID,建议这个app唯一 不能为0
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showBadge bool
是否在久按桌面图标时显示此渠道的通知
final
title String
通知的标题,显示在通知栏的顶部
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited