API Documentation Integration MsecSdk
Public Member Functions | List of all members
MsecSdkTest.TestMsecSdkForUnity Class Reference

A test class for integrating and testing the MsecSdk in Unity. More...

Inheritance diagram for MsecSdkTest.TestMsecSdkForUnity:
Inheritance graph
[legend]
Collaboration diagram for MsecSdkTest.TestMsecSdkForUnity:
Collaboration graph
[legend]

Public Member Functions

void OnViolationDetected (ViolationInfo violationInfo)
 Callback for when a violation is detected by the MsecSdk. More...
 
void OnInitializationCompleted (InitializationStatus initStatus)
 Callback for when MsecSdk initialization is completed. More...
 
void OnPerformanceDataReported (PerformanceData performanceData)
 Callback for when performance data is reported by the MsecSdk. More...
 

Detailed Description

A test class for integrating and testing the MsecSdk in Unity.

This class initializes the MsecSdk, handles callbacks for violations, initialization status, and performance data, and logs relevant information to the Unity console.

Member Function Documentation

◆ OnInitializationCompleted()

void MsecSdkTest.TestMsecSdkForUnity.OnInitializationCompleted ( InitializationStatus  initStatus)
inline

Callback for when MsecSdk initialization is completed.

Parameters
initStatusThe status of the initialization process.

< Logs the initialization status, timestamp, and OTP.

< If initialization is successful, retrieves and logs the OTP code.

< Verifies the domain certificate for "google.com" on port 443 and logs the result.

Implements MsecUnitySdk.IMsecSdkListener.

◆ OnPerformanceDataReported()

void MsecSdkTest.TestMsecSdkForUnity.OnPerformanceDataReported ( PerformanceData  performanceData)
inline

Callback for when performance data is reported by the MsecSdk.

Parameters
performanceDataThe performance metrics reported by the SDK.

< Logs CPU usage, memory usage, FPS, thread count, and timestamp to the Unity console.

Implements MsecUnitySdk.IMsecSdkListener.

◆ OnViolationDetected()

void MsecSdkTest.TestMsecSdkForUnity.OnViolationDetected ( ViolationInfo  violationInfo)
inline

Callback for when a violation is detected by the MsecSdk.

Parameters
violationInfoInformation about the detected violation.

< Logs the violation's name, category, and code to the Unity console.

Implements MsecUnitySdk.IMsecSdkListener.


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