/// 应用枚举定义 /// /// 集中管理所有在多个文件中使用的枚举类型 library; /// 网络状态 enum NetworkStatus { wifi, mobile, none, } /// 权限请求结果 enum PermissionResult { granted, denied, permanentlyDenied, } /// 权限类型 enum PermissionType { camera, gallery, microphone, bluetooth, } /// 推送事件类型 enum PushEventType { receiveNotification, // 收到通知 openNotification, // 点击通知 receiveMessage, // 自定义消息 }