SetNewsPublication

nn::boss::DataStoreDownloadAction::SetNewsPublication Member Function

Syntax

nn::Result SetNewsPublication(
     bit32 serialId,
     const wchar_t * pSubject,
     const wchar_t * pMessage,
     const u8 jumpParam[8]
);

Parameters

Name Description
in serialId Specifies a notification's serial ID. (Specify the ID issued by Nintendo.)
in pSubject Specifies the subject of the notification. (Do not specify more than 31 characters.)
in pMessage Specifies the message in the notification. (Do not specify more than 149 characters.)
in jumpParam[8] Specifies general-purpose parameters for notification application jumps.

Return Values

Returns the function's execution result. Returns one of the Result values listed below.

Value Description
Result::IsSuccess Initialization successful.
ResultInvalidPointer The pointer to the notification data subject, body, and jump parameters is NULL.
ResultInvalidSize The string length of the notification data subject or body is 0 or exceeds the maximum limit.
A value other than the above. Unexpected error (see boss_Result.h for error details).

Description

Configures how a notification is issued.

The notification to be issued must have a subject and text that comply with Nintendo's guidelines.
Use the serial IDs issued by Nintendo for these types of notifications when you specify values for this function's serialId parameter.
Apply for DataStore notifications on OMAS.

The jumpParam parameter can be used starting at SDK 4.1.0 or later. If the value will be used in the destination application, put it in an 8-byte array.
The specified value can be obtained with nn::news::CTR::user::IsFromNewsList in the destination application.
If the value will not be used in the destination application, the specified value is meaningless and can be set to any number (for example, an 8-byte array filled with 0s).

Revision History

2011/10/27
Initial version.

CONFIDENTIAL