nn::news::CTR::user::PostNews Function

Syntax

Result PostNews(
     const wchar_t * subject,
     const wchar_t * message,
     const u8 * picture = NULL,
     size_t pictureSize = 0,
     u32 serialId = 0,
     u32 dataVersion = 0,
     u64 jumpParam = 0
);

Parameters

Name Description
in subject Specifies the subject. Use a UTF16-LE string of up to SUBJECT_LEN characters (including the NULL terminator). Data is copied within the function.
in message Specifies the message. Use a UTF16-LE string of up to MESSAGE_LEN characters (including the NULL terminator). Data is copied within the function.
in picture Specifies an image. Use a format of JPEG or MPO (two JPEG images) and a size of 400 x 240 pixels. Data is copied within the function.
in pictureSize Specifies a size for the image, using a value equal to or less than PICTURE_SIZE.
in serialId Specifies the Notification serial ID. For now, always specify 0.
in dataVersion Specifies the Notification data version. For now, always specify 0.
in jumpParam Specifies the jump parameter. You can get this value when the application was started from the Notifications applet.

Return Values

Returns the result of the operation.

Description

Posts a message.

Revision History

2011/04/07
Added parameter for jumping from Notifications to application (details will be added when application jump specifications are published).
2010/11/10
Initial version.

CONFIDENTIAL