-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Conversation
@@ -119,6 +120,20 @@ class AndroidDeviceInfo { | |||
/// `false` if the application is running in an emulator, `true` otherwise. | |||
final bool isPhysicalDevice; | |||
|
|||
/// On Android 8.0 (API level 26) and higher versions of the platform, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have a more terse description for this property on its own line for documentation purposes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe something along the lines of this:
"A unique 64-bit encoded identifier provided by the platform"
/// constant for the lifetime of the user's device. On devices that have | ||
/// multiple users, each user appears as a completely separate device, | ||
/// so the ANDROID_ID value is unique to each user. | ||
/// A unique 64-bit encoded identifier provided by the platform. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still want the more detailed answer, @bkonyi was just saying that we also want a leading paragraph that is the concise description (because our docs software uses the first paragraph in tables of contents and the like).
Can you put back the text you had before after the new paragraph? :-)
On iOS we have the identifierForVendor to identify the current device. The Secure.ANDROID_ID is the way to do it in Android.
https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID