API Documentation Integration MsecSdk
|
Interface defining the callback methods for Msec SDK events. More...
Public Member Functions | |
void | OnInitializationCompleted (InitializationStatus status) |
Called when the Msec SDK initialization is completed. More... | |
void | OnViolationDetected (ViolationInfo violationInfo) |
Called when a security violation is detected by the Msec SDK. More... | |
void | OnPerformanceDataReported (PerformanceData performanceData) |
Called when performance data is reported by the Msec SDK. More... | |
Interface defining the callback methods for Msec SDK events.
This interface specifies the methods上次that must be implemented by any listener class to receive notifications from the Msec SDK about initialization status, security violations, and performance data. It is used by MsecSdk clients to report events back to the application.
void MsecUnitySdk.IMsecSdkListener.OnInitializationCompleted | ( | InitializationStatus | status | ) |
Called when the Msec SDK initialization is completed.
Implementations must handle the initialization status, which includes success/failure, timestamp, and an OTP code if applicable.
status | The status of the initialization process, containing success flag, timestamp, and OTP. |
Implemented in MsecSdkTest.TestMsecSdkForUnity.
void MsecUnitySdk.IMsecSdkListener.OnPerformanceDataReported | ( | PerformanceData | performanceData | ) |
Called when performance data is reported by the Msec SDK.
Implementations must handle the performance metrics, such as CPU usage, memory usage, FPS, thread count, and timestamp, to monitor application performance.
performanceData | The performance metrics reported by the SDK. |
Implemented in MsecSdkTest.TestMsecSdkForUnity.
void MsecUnitySdk.IMsecSdkListener.OnViolationDetected | ( | ViolationInfo | violationInfo | ) |
Called when a security violation is detected by the Msec SDK.
Implementations must process the violation information, such as category, name, and code, to respond to potential security issues.
violationInfo | Information about the detected violation, including category, name, and code. |
Implemented in MsecSdkTest.TestMsecSdkForUnity.