```java Amplify.DataStore.stop( () -> Log.i("MyAmplifyApp", "DataStore stopped"), error -> Log.e("MyAmplifyApp", "Error stopping DataStore", error) ); ``` ```kotlin Amplify.DataStore.stop( { Log.i("MyAmplifyApp", "DataStore stopped") }, { Log.e("MyAmplifyApp", "Error stopping DataStore", it) } ) ``` ```kotlin try { Amplify.DataStore.stop() Log.i("MyAmplifyApp", "DataStore stopped") } catch (error: DataStoreException) { Log.e("MyAmplifyApp", "Error stopping DataStore", error) } ``` ```java RxAmplify.DataStore.stop() .subscribe( () -> Log.i("MyAmplifyApp", "DataStore stopped"), error -> Log.e("MyAmplifyApp", "Error stopping DataStore", error) ); } ```