Class CrashService
-
- All Implemented Interfaces:
public final class CrashService extends MobileService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
CrashService.CrashUploadWorker
-
Field Summary
Fields Modifier and Type Field Description private Boolean
consented
private Application
application
private String
apiKey
-
Constructor Summary
Constructors Constructor Description CrashService(Boolean isOnlineOData)
-
Method Summary
Modifier and Type Method Description final Boolean
getConsented()
final Unit
setConsented(Boolean consented)
Unit
init(Application application, String apiKey)
Initializes the mobile service Unit
onStateChange(ApplicationState state)
Notified when application state changes. final Unit
upload(ServiceListener<Integer> listener)
-
Methods inherited from class com.sap.cloud.mobile.foundation.mobileservices.MobileService
enableNetworkPolicy, getApiKey, getApplication, isApplicationInitialized, mayStartNewProcess, reset, setApiKey, setApplication
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getConsented
final Boolean getConsented()
-
setConsented
final Unit setConsented(Boolean consented)
-
init
Unit init(Application application, String apiKey)
Initializes the mobile service
-
onStateChange
Unit onStateChange(ApplicationState state)
Notified when application state changes. This function will be called on Main thread.
-
upload
final Unit upload(ServiceListener<Integer> listener)
-
-
-
-