Skip to content

TextMessageProbe

Collects a TextMessage every time this device receives an SMS message.

Used for the CommunicationSamplingPackage.TEXT_MESSAGE measure. Starts listening on onResume, both in the foreground and in the background (via backgroundMessageHandler).

Only works on Android.

Inheritance

Constructors

TextMessageProbe

TextMessageProbe()

Properties

stream

Stream<Measurement> get stream
override

The stream of Measurement objects for this StreamProbe. Must be implemented by sub-classes.

Methods

onResume

Future<bool> onResume()
override

Callback when this executor is resumed. Returns true if successfully resumed, false otherwise.