NodeClient.OnNodeMigratedListener
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Receives events after a node migration has successfully finished.
Public Methods
public abstract void onNodeMigrated (String nodeId, DataItemBuffer
archive)
Notification that a watch has migrated from a previous phone to this phone.
This notification contains an archive of the data items written by the previous
phone. You may inspect the data items in the archive and integrate them into your own
data items.
After this method completes, the data buffer is
released
and any data items it contains become invalid. You should
freeze
any data items that you wish to use after the callback completes.
You may want to filter the archive data items by path during this callback, freezing
a subset of them into a temporary collection, and then schedule the work of processing
and saving your data into a worker thread.
Parameters
nodeId |
nodeId of the migrating watch. |
archive |
the archive of DataItem s
from the previous phone. |
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 2023-08-31 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"
}]
{"lastModified": "Last updated 2023-08-31 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 2023-08-31 UTC."]]