/*---------------------------------------------------------------------------*
Copyright (C) Nintendo. All rights reserved.
These coded instructions, statements, and computer programs contain
proprietary information of Nintendo of America Inc. and/or Nintendo
Company Ltd., and are protected by Federal copyright law. They may
not be disclosed to third parties or copied or duplicated in any form,
in whole or in part, without the prior written consent of Nintendo.
*---------------------------------------------------------------------------*/
#ifndef NN_ACT_API_PARENTAL_CONTROLS_H_
#define NN_ACT_API_PARENTAL_CONTROLS_H_
#include "act_Types.h"
#ifdef __cplusplus
namespace nn
{
namespace act
{
//! @addtogroup nn_act_api
//! @{
//! @name Controlling Parental Control Checks
//! @{
/*!
@brief Gets whether the parental control check for Online Interaction in Games is enabled during service authentication.
Note that this function does not retrieve whether online interaction in games is being restricted; it retrieves whether the restriction setting for online interaction in games is being checked.
This function does not change the operations of Parental Controls except for the Online Interaction in Games setting. @n
This setting affects not only the account library function that gets a service token, but also logging in to the NEX library, OLV library initialization, and other processes.
In addition, this value is enabled only for requests from the application that called this function while it continues to run. @n
@return Returns true if the parental control check is enabled for Online Interaction in Games; otherwise, it returns false.
*/
bool IsParentalControlCheckEnabled( void );
/*!
@brief Enables or disables the parental control check for Online Interaction in Games during service authentication.
By default, this is enabled.
If you disable the parental control check for Online Interaction in Games using this function, always be sure to handle parental control appropriately in your own code. @n
This function does not change the operations of Parental Controls except for the Online Interaction in Games setting. @n
This setting affects not only the account library function that gets a service token, but also logging in to the NEX library, OLV library initialization, and other processes.
In addition, this value is enabled only for requests from the application that called this function while it continues to run. @n
This function is not thread-safe with other functions that it affects, such as @ref nn::act::IsParentalControlCheckEnabled, @ref nn::act::AcquireIndependentServiceToken, and @ref nn::act::AcquireEcServiceToken.
@param[in] isEnabled Specifies whether to enable the parental control check for Online Interaction in Games.
*/
void EnableParentalControlCheck( bool isEnabled );
//! @}
//! @}
}
}
#endif
#endif // NN_ACT_API_PARENTAL_CONTROLS_H_