mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Support XR devices for QuickShare DeviceType
PiperOrigin-RevId: 758009685
This commit is contained in:
@@ -538,6 +538,8 @@ enum DeviceType {
|
||||
TABLET = 2;
|
||||
LAPTOP = 3;
|
||||
CAR = 4;
|
||||
FOLDABLE = 5;
|
||||
XR = 6;
|
||||
}
|
||||
|
||||
// TODO(fdi): may eventually include windows, iOS, etc.
|
||||
|
||||
@@ -101,6 +101,7 @@ bool IsKnownDeviceValue(int32_t value) {
|
||||
case 3:
|
||||
case 4:
|
||||
case 5:
|
||||
case 6:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
||||
@@ -57,6 +57,8 @@ enum class ShareTargetType {
|
||||
kCar = 4,
|
||||
// A foldable.
|
||||
kFoldable = 5,
|
||||
// An XR device.
|
||||
kXR = 6,
|
||||
};
|
||||
// LINT.ThenChange(
|
||||
// //depot/google3/location/nearby/cpp/sharing/clients/proto/share_target.proto:ShareTarget.ShareTargetType,
|
||||
|
||||
Reference in New Issue
Block a user