smallIcon property

String? smallIcon
getter/setter pair

Small icon for the notification. (Android Only)

⚠️ Warning:

  • You must specify the type (drawable|mipmap) of resource you wish to use in the following format: {type}/icon_name
  • Do not append the file-extension (eg: .png)

Example

// 1. drawable
CoffeeBackgroundGeolocation.init(Config(
  notification: Notification(
    smallIcon: "drawable/my_custom_notification_small_icon"
  )
));

// 2. mipmap
CoffeeBackgroundGeolocation.init(Config(
  notification: Notification(
    smallIcon: "mipmap/my_custom_notification_small_icon"
  }
});

ℹ️ See also:

Implementation

String? smallIcon;