ApplicationExitInfo.TraceInputStream Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return the InputStream to the traces that was taken by the system
prior to the death of the process; typically it'll be available when
the reason is #REASON_ANR
, though if the process gets an ANR
but recovers, and dies for another reason later, this trace will be included
in the record of ApplicationExitInfo
still.
public System.IO.Stream? TraceInputStream { [Android.Runtime.Register("getTraceInputStream", "()Ljava/io/InputStream;", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getTraceInputStream", "()Ljava/io/InputStream;", "", ApiSince=30)>]
member this.TraceInputStream : System.IO.Stream
Property Value
The input stream to the traces that was taken by the system prior to the death of the process.
- Attributes
Remarks
Return the InputStream to the traces that was taken by the system prior to the death of the process; typically it'll be available when the reason is #REASON_ANR
, though if the process gets an ANR but recovers, and dies for another reason later, this trace will be included in the record of ApplicationExitInfo
still. Beginning with API 31, tombstone traces will be returned for #REASON_CRASH_NATIVE
, with an InputStream containing a protobuf with this schema. Note that because these traces are kept in a separate global circular buffer, crashes may be overwritten by newer crashes (including from other applications), so this may still return null.
Java documentation for android.app.ApplicationExitInfo.getTraceInputStream()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.