nn::boss::TaskPolicy::Initialize Member Function

Syntax

nn::Result Initialize(
     u32 interval,
     u32 count
);

Arguments

Name Description
in interval Specifies the execution interval for a task. The units are hours. (Values from 1 hour to 168 hours are valid.)
in count Specifies the execution count for a task.

Return Values

Returns the function's execution result. Returns one of the Result values listed below.
Value Description
ResultSuccess Initialization successful.
A value other than the above. Unexpected error (see boss_Result.h for error details).

Description

Configures the policy settings. This initialization makes it possible to reuse objects.

The initialization process sets the TASK_PERMISSION value, which can be set by the SetProperty function, equal to its default value of TASK_PERMISSION_IN_PARENTAL_CONTROL (tasks can run even when Online Interaction is restricted by Parental Controls).


CONFIDENTIAL