Results

 object 
 Results 

Direct use of Results is not supported.

Helper functions to create common formats of Result .

Summary

Public methods

Result
forError ( errorCode : ErrorCode )

Returns a Result with a resultCode of ERROR and a specified errorCode .

Properties

Result

A Result with a resultCode of CANCELLED .

Result

A Result with a resultCode of ERROR with an errorCode of UNKNOWN .

Result

A Result with a resultCode of SUCCESS .

Public methods

forError

 fun 
 forError 
 ( 
 errorCode 
 : 
 ErrorCode 
 ) 
 : 
 Result 

Returns a Result with a resultCode of ERROR and a specified errorCode .

Properties

CANCELLED

 val 
 CANCELLED 
 : 
 Result 

A Result with a resultCode of CANCELLED .

ERROR_UNKNOWN

 val 
 ERROR_UNKNOWN 
 : 
 Result 

A Result with a resultCode of ERROR with an errorCode of UNKNOWN .

SUCCESS

 val 
 SUCCESS 
 : 
 Result 

A Result with a resultCode of SUCCESS .

Create a Mobile Website
View Site in Mobile | Classic
Share by: