Stay organized with collections
Save and categorize content based on your preferences.
RunningServiceInfo
open class RunningServiceInfo
Describes a running service report.
Summary
Public constructors |
Create an uninitialized instance of RunningServiceInfo.
|
Create an instance of RunningServiceInfo initialized from a Parcel.
|
Public methods |
open Unit |
Dump a BatteryInfo instance to a Printer.
|
open Unit |
Save a RunningServiceInfo instance to a parcel.
|
Properties |
Long |
Duration in milliseconds that the service has been running.
|
String! |
Dump of debug information about the service.
|
Public constructors
RunningServiceInfo
RunningServiceInfo()
Create an uninitialized instance of RunningServiceInfo.
RunningServiceInfo
RunningServiceInfo(in: Parcel!)
Create an instance of RunningServiceInfo initialized from a Parcel.
Public methods
dump
open fun dump(
pw: Printer!,
prefix: String!
): Unit
Dump a BatteryInfo instance to a Printer.
writeToParcel
open fun writeToParcel(
dest: Parcel!,
flags: Int
): Unit
Save a RunningServiceInfo instance to a parcel.
Properties
durationMillis
var durationMillis: Long
Duration in milliseconds that the service has been running.
serviceDetails
var serviceDetails: String!
Dump of debug information about the service.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ApplicationErrorReport.RunningServiceInfo\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nRunningServiceInfo\n==================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/app/ApplicationErrorReport.RunningServiceInfo \"View this page in Java\") \n\n```\nopen class RunningServiceInfo\n```\n\n|---|------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.app.ApplicationErrorReport.RunningServiceInfo](#) |\n\nDescribes a running service report.\n\nSummary\n-------\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [RunningServiceInfo](#RunningServiceInfo())`()` Create an uninitialized instance of RunningServiceInfo. |\n| [RunningServiceInfo](#RunningServiceInfo(android.os.Parcel))`(`in:` `[Parcel](../os/Parcel.html#)!`)` Create an instance of RunningServiceInfo initialized from a Parcel. |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [dump](#dump(android.util.Printer,%20kotlin.String))`(`pw:` `[Printer](../util/Printer.html#)!`, `prefix:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Dump a BatteryInfo instance to a Printer. |\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [writeToParcel](#writeToParcel(android.os.Parcel,%20kotlin.Int))`(`dest:` `[Parcel](../os/Parcel.html#)!`, `flags:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Save a RunningServiceInfo instance to a parcel. |\n\n| Properties ||\n|-----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|\n| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [durationMillis](#durationMillis:kotlin.Long) Duration in milliseconds that the service has been running. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [serviceDetails](#serviceDetails:kotlin.String) Dump of debug information about the service. |\n\nPublic constructors\n-------------------\n\n### RunningServiceInfo\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nRunningServiceInfo()\n```\n\nCreate an uninitialized instance of RunningServiceInfo. \n\n### RunningServiceInfo\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nRunningServiceInfo(in: Parcel!)\n```\n\nCreate an instance of RunningServiceInfo initialized from a Parcel.\n\nPublic methods\n--------------\n\n### dump\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun dump(\n pw: Printer!, \n prefix: String!\n): Unit\n```\n\nDump a BatteryInfo instance to a Printer. \n\n### writeToParcel\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun writeToParcel(\n dest: Parcel!, \n flags: Int\n): Unit\n```\n\nSave a RunningServiceInfo instance to a parcel.\n\nProperties\n----------\n\n### durationMillis\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar durationMillis: Long\n```\n\nDuration in milliseconds that the service has been running. \n\n### serviceDetails\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar serviceDetails: String!\n```\n\nDump of debug information about the service."]]