Added in API level 1
Deprecated in API level 24

MockDialogInterface


open class MockDialogInterface : DialogInterface
kotlin.Any
   ↳ android.test.mock.MockDialogInterface

A mock android.content.DialogInterface class. All methods are non-functional and throw java.lang.UnsupportedOperationException. Override it to provide the operations that you need.

Summary

Inherited constants
Public constructors

Public methods
open Unit

Cancels the dialog, invoking the OnCancelListener.

open Unit

Dismisses the dialog, invoking the OnDismissListener.

Public constructors

MockDialogInterface

MockDialogInterface()

Public methods

cancel

Added in API level 1
open fun cancel(): Unit

Deprecated: Deprecated in Java.

Cancels the dialog, invoking the OnCancelListener.

The OnDismissListener may also be called if cancellation dismisses the dialog.

dismiss

Added in API level 1
open fun dismiss(): Unit

Deprecated: Deprecated in Java.

Dismisses the dialog, invoking the OnDismissListener.