nn::boss::TaskPolicy::Initialize Member Functionnn::Result Initialize( u32 interval, u32 count );
| 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. |
Result values listed below. | Value | Description |
|---|---|
ResultSuccess |
Initialization successful. |
| A value other than the above. | Unexpected error (see boss_Result.h for error details). |
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