From a7bb03cdf1142e8b8527f593c879e40779146549 Mon Sep 17 00:00:00 2001 From: Automation51D <51DCI@51Degrees.com> Date: Mon, 20 Jul 2026 08:46:34 +0000 Subject: [PATCH] Update properties --- .../fiftyone/devicedetection/shared/DeviceData.java | 8 ++++++++ .../devicedetection/shared/DeviceDataBase.java | 12 ++++++++++++ 2 files changed, 20 insertions(+) diff --git a/device-detection.shared/src/main/java/fiftyone/devicedetection/shared/DeviceData.java b/device-detection.shared/src/main/java/fiftyone/devicedetection/shared/DeviceData.java index 70169b4d2..a494c57a9 100644 --- a/device-detection.shared/src/main/java/fiftyone/devicedetection/shared/DeviceData.java +++ b/device-detection.shared/src/main/java/fiftyone/devicedetection/shared/DeviceData.java @@ -600,6 +600,14 @@ public interface DeviceData extends AspectData * Indicates if the device is a TV running on a smart operating system e.g. Android. */ AspectPropertyValue getIsTv(); + /** + * Indicates whether the device is likely to be a genuine iPhone based on interrogation by JavaScript contained in the JavaScriptHardwareProfile property. + */ + AspectPropertyValue getIsVerifiediPhone(); + /** + * JavaScript which overrides the IsVerifiediPhone property to report whether an iPhone is genuine. This is only used where the device is presenting as an iPhone with the evidence provided. Requires JavascriptHardwareProfile property. + */ + AspectPropertyValue getIsVerifiediPhoneJavaScript(); /** * Indicates if the browser or app is being used to access a web page through a WebView. */ diff --git a/device-detection.shared/src/main/java/fiftyone/devicedetection/shared/DeviceDataBase.java b/device-detection.shared/src/main/java/fiftyone/devicedetection/shared/DeviceDataBase.java index d7fff9213..8dc146bad 100644 --- a/device-detection.shared/src/main/java/fiftyone/devicedetection/shared/DeviceDataBase.java +++ b/device-detection.shared/src/main/java/fiftyone/devicedetection/shared/DeviceDataBase.java @@ -900,6 +900,18 @@ protected DeviceDataBase( @SuppressWarnings("unchecked") @Override public AspectPropertyValue getIsTv() { return getAs("istv", AspectPropertyValue.class, Boolean.class); } + /** + * Indicates whether the device is likely to be a genuine iPhone based on interrogation by JavaScript contained in the JavaScriptHardwareProfile property. + */ + @SuppressWarnings("unchecked") + @Override + public AspectPropertyValue getIsVerifiediPhone() { return getAs("isverifiediphone", AspectPropertyValue.class, String.class); } + /** + * JavaScript which overrides the IsVerifiediPhone property to report whether an iPhone is genuine. This is only used where the device is presenting as an iPhone with the evidence provided. Requires JavascriptHardwareProfile property. + */ + @SuppressWarnings("unchecked") + @Override + public AspectPropertyValue getIsVerifiediPhoneJavaScript() { return getAs("isverifiediphonejavascript", AspectPropertyValue.class, JavaScript.class); } /** * Indicates if the browser or app is being used to access a web page through a WebView. */