AlphynCallbackResult Class
Contains detailed information about SDK operations and events.
OperationType
INITIALIZATION- SDK initialization operationsSECURITY_SCAN- Security scanning operationsSCAN_RESPONSE- Scan result operationsNETWORK- Network-related operationsSTORAGE- Secure storage operationsCALLBACK- Callback system operations
OperationResult
SUCCESS- Operation completed successfullyFAILURE- Operation failedTHREAT_DETECTED- Security threat identified
Methods
Section titled “Methods”getOperationType()
- Returns:
OperationType- Type of operation that triggered this result
getOperationResult()
- Returns:
OperationResult- Result status of the operation
getOriginalEventType()
- Returns:
AlphynEventType- Original event type from the SDK
getMessage()
- Returns:
String- Human-readable message describing the event
getDetails()
- Returns:
String- Additional details about the event
getScanResult()
- Returns:
AlphynScanResult- Scan result enum (only for scan response events)
getRiskFactor()
- Returns:
String- The risk factor for a threat or risk-factor event (e.g."DEVICE_ROOTED"); an empty string for every other event
hasRiskFactor(String riskFactor)
- Returns:
boolean- true ifgetRiskFactor()equalsriskFactor
isRiskFactorDetection()
- Returns:
boolean- true if the event isRISK_FACTOR_DETECTED
Convenience Methods
Section titled “Convenience Methods”isInitialization() - Returns true if this is an initialization event
isSecurityScan() - Returns true if this is a security scan event
isScanResponse() - Returns true if this is a scan response event
isNetwork() - Returns true if this is a network event
isStorage() - Returns true if this is a storage event
isCallback() - Returns true if this is a callback event
isSuccess() - Returns true if the operation was successful
isFailure() - Returns true if the operation failed
isThreatDetected() - Returns true if a threat was detected