pub unsafe extern "C" fn NEWS_AddNotification(
    title: *const u16_,
    titleLength: u32_,
    message: *const u16_,
    messageLength: u32_,
    imageData: *const c_void,
    imageSize: u32_,
    jpeg: bool
) -> Result
Expand description

Adds a notification to the home menu Notifications applet.

§Arguments

  • title - UTF-16 title of the notification.
  • titleLength - Number of characters in the title, not including the null-terminator.
  • message - UTF-16 message of the notification, or NULL for no message.
  • messageLength - Number of characters in the message, not including the null-terminator.
  • image - Data of the image to show in the notification, or NULL for no image.
  • imageSize - Size of the image data in bytes.
  • jpeg - Whether the image is a JPEG or not.