OnDataPointListener
Stay organized with collections
Save and categorize content based on your preferences.
Listener used to register to live data updates from a DataSource
.
Used by clients wanting to subscribe to live data stream updates via SensorsClient
.
Each event is delivered as a DataPoint
.
The listener is used both when
adding
a registration and when
removing
it. The same listener can be used for multiple registrations.
Public Methods
public abstract void onDataPoint (DataPoint
dataPoint)
Handle a new data point from the data source. The data point's data
type
describes the format and meaning of its values.
Note: The application doesn't own the data point object passed as a parameter
after this method returns and therefore should not hold on to it, since the DataPoint
can be reused by the platform.
Parameters
dataPoint |
The data point for this event. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-05-26 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]