Added in API level 23
    OnErrorListener
interface OnErrorListener
| android.media.MediaSync.OnErrorListener | 
Interface definition of a callback to be invoked when there has been an error during an asynchronous operation (other errors will throw exceptions at method call time).
Summary
| Public methods | |
|---|---|
| abstract Unit | 
            
             Called to indicate an error.  | 
        
Public methods
onError
Added in API level 23
      abstract fun onError(
sync: MediaSync,
what: Int,
extra: Int
): Unit
Called to indicate an error.
| Parameters | |
|---|---|
sync | 
            MediaSync: The MediaSync the error pertains to This value cannot be null. | 
          
what | 
            Int: The type of error that has occurred: | 
extra | 
            Int: an extra code, specific to the error. Typically implementation dependent. |