Skip to content

AlphynCallbackResult Class

Contains detailed information about SDK operations and events.

OperationType

  • INITIALIZATION - SDK initialization operations
  • SECURITY_SCAN - Security scanning operations
  • SCAN_RESPONSE - Scan result operations
  • NETWORK - Network-related operations
  • STORAGE - Secure storage operations
  • CALLBACK - Callback system operations

OperationResult

  • SUCCESS - Operation completed successfully
  • FAILURE - Operation failed
  • THREAT_DETECTED - Security threat identified

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 if getRiskFactor() equals riskFactor

isRiskFactorDetection()

  • Returns: boolean - true if the event is RISK_FACTOR_DETECTED

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