API Documentation Integration MsecSdk
Public Member Functions | List of all members
MsecUnitySdk.IMsecSdkListener Interface Reference

Interface defining the callback methods for Msec SDK events. More...

Inheritance diagram for MsecUnitySdk.IMsecSdkListener:
Inheritance graph
[legend]

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...
 

Detailed Description

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.

Member Function Documentation

◆ OnInitializationCompleted()

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.

Parameters
statusThe status of the initialization process, containing success flag, timestamp, and OTP.

Implemented in MsecSdkTest.TestMsecSdkForUnity.

◆ OnPerformanceDataReported()

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.

Parameters
performanceDataThe performance metrics reported by the SDK.

Implemented in MsecSdkTest.TestMsecSdkForUnity.

◆ OnViolationDetected()

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.

Parameters
violationInfoInformation about the detected violation, including category, name, and code.

Implemented in MsecSdkTest.TestMsecSdkForUnity.


The documentation for this interface was generated from the following file: