SearchViewCallback
Interface for setting callback functions for SearchLayout.
Methods
fun directoryObjectChosen(obj: DirectoryObject): Unit
Method will be called when the user selects a result from the search results. The selected DirectoryObject will be returned.
Parameters
fun searchCompletedSuccessfully(items: List<DirectoryObject>): Unit
Method will be called when the search is successful. A list of DirectoryObject results obtained from the search results will be returned.
Parameters
fun searchCompletedWithException(message: String): Unit
Method will be called if an exception occurs during the search. The message from the exception will be returned.
Parameters
fun searchAborted(): Unit
Method will be called if the search string has been cleared of input.
Returns
fun searchClosed(): Unit
Method will be called if the user closed the search in the standard way: with the close button next to the search bar.
Returns