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
);

Arguments

Name Description
in subject Specify the subject. Using UTF16-LE, use a maximum of SUBJECT_LEN characters (including the NULL terminator). Data will be copied within the function.
in message Specify the body of the message. Using UTF16-LE, use a maximum of MESSAGE_LEN characters (including the NULL terminator). Data will be copied within the function.
in picture Specify an image. Using the JPEG or MPO (2 JPEG file) format, make the size 400 x 240 pixels. Data will be copied within the function.
in pictureSize Specify the size of the image. The maximum size is 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.

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