Package apple.sensorkit.c
Class SensorKit
- java.lang.Object
-
- apple.sensorkit.c.SensorKit
-
public final class SensorKit extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static doubleSR_ARKIT_SUPPORTED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doubleSRAbsoluteTimeFromCFAbsoluteTime(double cf)Convert a CFAbsoluteTime to an SRAbsoluteTime.static doubleSRAbsoluteTimeFromContinuousTime(long cont)Convert a mach_continuous_time to an SRAbsoluteTime.static doubleSRAbsoluteTimeGetCurrent()Get the current SRAbsoluteTime for this device.static doubleSRAbsoluteTimeToCFAbsoluteTime(double sr)Convert a SRAbsoluteTime to a CFAbsoluteTime.static @NotNull java.lang.StringSRDeviceUsageCategoryBooks()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryBusiness()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryCatalogs()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryDeveloperTools()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryEducation()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryEntertainment()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryFinance()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryFoodAndDrink()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryGames()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryGraphicsAndDesign()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryHealthAndFitness()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryKids()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryLifestyle()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryMedical()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryMiscellaneous()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryMusic()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryNavigation()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryNews()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryNewsstand()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryPhotoAndVideo()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryProductivity()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryReference()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryShopping()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategorySocialNetworking()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategorySports()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryStickers()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryTravel()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryUtilities()API-Since: 14.0static @NotNull java.lang.StringSRDeviceUsageCategoryWeather()API-Since: 14.0static @NotNull java.lang.StringSRErrorDomain()API-Since: 14.0static @NotNull java.lang.StringSRSensorAccelerometer()[@const] SRSensorAccelerometer Accelerometer sensor stream for Motion.static @NotNull java.lang.StringSRSensorAmbientLightSensor()[@const] SRSensorAmbientLightSensor Sensor stream for Environmental Brightness and Color.static @NotNull java.lang.StringSRSensorAmbientPressure()[@const] SRSensorAmbientPressure Ambient pressure sensor stream This stream stores simple pressure and temperature measurements including:static @NotNull java.lang.StringSRSensorDeviceUsageReport()[@const] SRSensorDeviceUsageReport Sensor stream for Device Usage.static @NotNull java.lang.StringSRSensorFaceMetrics()[@const] SRSensorFaceMetrics Sensor stream for face metrics collection This stream stores face metrics including:static @NotNull java.lang.StringSRSensorHeartRate()[@const] SRSensorHeartRate Estimated heart rate Fetches from this stream return objects of type \c CMHighFrequencyHeartRateData API-Since: 17.0static @NotNull java.lang.StringSRSensorKeyboardMetrics()[@const] SRSensorKeyboardMetrics Sensor stream for Keyboard Usage This stream stores information about keyboard usage from all apps where a keyboard is used including:static @NotNull java.lang.StringSRSensorMediaEvents()[@const] SRSensorMediaEvents Media events sensor stream This stream stores data about user interaction with photo and video content in messaging apps including:static @NotNull java.lang.StringSRSensorMessagesUsageReport()[@const] SRSensorMessagesUsageReport Sensor stream for Messages Usage.static @NotNull java.lang.StringSRSensorOdometer()[@const] SRSensorOdometer Odometer sensor stream This stream stores measurements of your distance and speed Fetches from this stream return objects of type \c CMOdometerData as defined in the CoreMotion framework.static @NotNull java.lang.StringSRSensorOnWristState()[@const] SRSensorOnWristState Sensor stream for Watch on Wrist This streams stores information about Apple Watch wear including:static @NotNull java.lang.StringSRSensorPedometerData()[@const] SRSensorPedometerData Sensor stream for Pedometer.static @NotNull java.lang.StringSRSensorPhoneUsageReport()[@const] SRSensorPhoneUsageReport Sensor stream for Phone Usage This streams stores information about phone usage including:static @NotNull java.lang.StringSRSensorRotationRate()[@const] SRSensorRotationRate Rotation rate sensor stream for Motion.static @NotNull java.lang.StringSRSensorSiriSpeechMetrics()[@const] SRSensorSiriSpeechMetrics Siri sensor stream for Speech Metrics This stream stores information data about your voice during Siri sessions including:static @NotNull java.lang.StringSRSensorTelephonySpeechMetrics()[@const] SRSensorTelephonySpeechMetrics Telephony sensor stream for Speech Metrics This stream stores information data about your voice during phone calls including:static @NotNull java.lang.StringSRSensorVisits()[@const] SRSensorVisits Sensor stream for Frequently Visited Locations.static @NotNull java.lang.StringSRSensorWristTemperature()[@const] SRSensorWristTemperature Sensor stream for Apple Watch temperatures on wrist while sleeping This stream stores Apple Watch on wrist temperature measurements including:
-
-
-
Field Detail
-
SR_ARKIT_SUPPORTED
public static final double SR_ARKIT_SUPPORTED
- See Also:
- Constant Field Values
-
-
Method Detail
-
SRAbsoluteTimeGetCurrent
public static double SRAbsoluteTimeGetCurrent()
Get the current SRAbsoluteTime for this device. This timestamp ticks across sleeps and reboots. API-Since: 14.0
-
SRAbsoluteTimeFromContinuousTime
public static double SRAbsoluteTimeFromContinuousTime(long cont)
Convert a mach_continuous_time to an SRAbsoluteTime. Because mach_continuous_time is volatile and hardware specific, the mach_continuous_time must originate from the same device and boot session that SRAbsoluteTimeFromContinuousTime() is called from. The return value for mach_continuous_times spanning boot sessions or devices is undefined. API-Since: 14.0
-
SRAbsoluteTimeToCFAbsoluteTime
public static double SRAbsoluteTimeToCFAbsoluteTime(double sr)
Convert a SRAbsoluteTime to a CFAbsoluteTime. The CFAbsoluteTime returned is based on calculations relative to the current wall clock. This means that if the system time is 5 seconds fast against UTC, the result will be 5 seconds fast to when the event happened relative to UTC. API-Since: 14.0
-
SRAbsoluteTimeFromCFAbsoluteTime
public static double SRAbsoluteTimeFromCFAbsoluteTime(double cf)
Convert a CFAbsoluteTime to an SRAbsoluteTime. The SRAbsoluteTime returned is based on calculations relative to the current wall clock. This means that if the system time is 5 seconds fast against UTC, the result will be 5 seconds fast to when the event happened relative to UTC. API-Since: 14.0
-
SRSensorAmbientLightSensor
@NotNull public static @NotNull java.lang.String SRSensorAmbientLightSensor()
[@const] SRSensorAmbientLightSensor Sensor stream for Environmental Brightness and Color. This data stream stores ambient light sensor data from devices when the screen is on. Fetches from this stream return objects of type SRAmbientLightSample. API-Since: 14.0
-
SRSensorAccelerometer
@NotNull public static @NotNull java.lang.String SRSensorAccelerometer()
[@const] SRSensorAccelerometer Accelerometer sensor stream for Motion. This data stream stores acceleration measured by the device's accelerometer. Fetches from this stream return objects of type NSArray* as defined in the CoreMotion framework. API-Since: 14.0
-
SRSensorRotationRate
@NotNull public static @NotNull java.lang.String SRSensorRotationRate()
[@const] SRSensorRotationRate Rotation rate sensor stream for Motion. This data stream stores rotation rate measured by the device's gyroscope. Fetches from this stream return objects of type NSArray* as defined in the CoreMotion framework. API-Since: 14.0
-
SRSensorVisits
@NotNull public static @NotNull java.lang.String SRSensorVisits()
[@const] SRSensorVisits Sensor stream for Frequently Visited Locations. This data stream stores visit information from frequently visited locations including:
-
SRSensorPedometerData
@NotNull public static @NotNull java.lang.String SRSensorPedometerData()
[@const] SRSensorPedometerData Sensor stream for Pedometer. This stream stores information about your step count. Fetches from this stream return objects of type CMPedometerData as defined in the CoreMotion framework. API-Since: 14.0
-
SRSensorDeviceUsageReport
@NotNull public static @NotNull java.lang.String SRSensorDeviceUsageReport()
[@const] SRSensorDeviceUsageReport Sensor stream for Device Usage. This stream stores information about device usage including:
-
SRSensorMessagesUsageReport
@NotNull public static @NotNull java.lang.String SRSensorMessagesUsageReport()
[@const] SRSensorMessagesUsageReport Sensor stream for Messages Usage. This streams stores information about messages usage including:
-
SRSensorPhoneUsageReport
@NotNull public static @NotNull java.lang.String SRSensorPhoneUsageReport()
[@const] SRSensorPhoneUsageReport Sensor stream for Phone Usage This streams stores information about phone usage including:
-
SRSensorOnWristState
@NotNull public static @NotNull java.lang.String SRSensorOnWristState()
[@const] SRSensorOnWristState Sensor stream for Watch on Wrist This streams stores information about Apple Watch wear including:
-
SRSensorKeyboardMetrics
@NotNull public static @NotNull java.lang.String SRSensorKeyboardMetrics()
[@const] SRSensorKeyboardMetrics Sensor stream for Keyboard Usage This stream stores information about keyboard usage from all apps where a keyboard is used including:
-
SRSensorSiriSpeechMetrics
@NotNull public static @NotNull java.lang.String SRSensorSiriSpeechMetrics()
[@const] SRSensorSiriSpeechMetrics Siri sensor stream for Speech Metrics This stream stores information data about your voice during Siri sessions including:
-
SRSensorTelephonySpeechMetrics
@NotNull public static @NotNull java.lang.String SRSensorTelephonySpeechMetrics()
[@const] SRSensorTelephonySpeechMetrics Telephony sensor stream for Speech Metrics This stream stores information data about your voice during phone calls including:
-
SRErrorDomain
@NotNull public static @NotNull java.lang.String SRErrorDomain()
API-Since: 14.0
-
SRDeviceUsageCategoryGames
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryGames()
API-Since: 14.0
-
SRDeviceUsageCategoryBusiness
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryBusiness()
API-Since: 14.0
-
SRDeviceUsageCategoryWeather
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryWeather()
API-Since: 14.0
-
SRDeviceUsageCategoryUtilities
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryUtilities()
API-Since: 14.0
-
SRDeviceUsageCategoryTravel
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryTravel()
API-Since: 14.0
-
SRDeviceUsageCategorySports
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategorySports()
API-Since: 14.0
-
SRDeviceUsageCategorySocialNetworking
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategorySocialNetworking()
API-Since: 14.0
-
SRDeviceUsageCategoryReference
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryReference()
API-Since: 14.0
-
SRDeviceUsageCategoryProductivity
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryProductivity()
API-Since: 14.0
-
SRDeviceUsageCategoryPhotoAndVideo
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryPhotoAndVideo()
API-Since: 14.0
-
SRDeviceUsageCategoryNews
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryNews()
API-Since: 14.0
-
SRDeviceUsageCategoryNavigation
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryNavigation()
API-Since: 14.0
-
SRDeviceUsageCategoryMusic
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryMusic()
API-Since: 14.0
-
SRDeviceUsageCategoryLifestyle
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryLifestyle()
API-Since: 14.0
-
SRDeviceUsageCategoryHealthAndFitness
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryHealthAndFitness()
API-Since: 14.0
-
SRDeviceUsageCategoryFinance
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryFinance()
API-Since: 14.0
-
SRDeviceUsageCategoryEntertainment
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryEntertainment()
API-Since: 14.0
-
SRDeviceUsageCategoryEducation
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryEducation()
API-Since: 14.0
-
SRDeviceUsageCategoryBooks
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryBooks()
API-Since: 14.0
-
SRDeviceUsageCategoryMedical
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryMedical()
API-Since: 14.0
-
SRDeviceUsageCategoryNewsstand
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryNewsstand()
API-Since: 14.0
-
SRDeviceUsageCategoryCatalogs
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryCatalogs()
API-Since: 14.0
-
SRDeviceUsageCategoryKids
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryKids()
API-Since: 14.0
-
SRDeviceUsageCategoryMiscellaneous
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryMiscellaneous()
API-Since: 14.0
-
SRDeviceUsageCategoryFoodAndDrink
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryFoodAndDrink()
API-Since: 14.0
-
SRDeviceUsageCategoryDeveloperTools
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryDeveloperTools()
API-Since: 14.0
-
SRDeviceUsageCategoryGraphicsAndDesign
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryGraphicsAndDesign()
API-Since: 14.0
-
SRDeviceUsageCategoryShopping
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryShopping()
API-Since: 14.0
-
SRDeviceUsageCategoryStickers
@NotNull public static @NotNull java.lang.String SRDeviceUsageCategoryStickers()
API-Since: 14.0
-
SRSensorAmbientPressure
@NotNull public static @NotNull java.lang.String SRSensorAmbientPressure()
[@const] SRSensorAmbientPressure Ambient pressure sensor stream This stream stores simple pressure and temperature measurements including:
-
SRSensorMediaEvents
@NotNull public static @NotNull java.lang.String SRSensorMediaEvents()
[@const] SRSensorMediaEvents Media events sensor stream This stream stores data about user interaction with photo and video content in messaging apps including:
-
SRSensorWristTemperature
@NotNull public static @NotNull java.lang.String SRSensorWristTemperature()
[@const] SRSensorWristTemperature Sensor stream for Apple Watch temperatures on wrist while sleeping This stream stores Apple Watch on wrist temperature measurements including:
-
SRSensorHeartRate
@NotNull public static @NotNull java.lang.String SRSensorHeartRate()
[@const] SRSensorHeartRate Estimated heart rate Fetches from this stream return objects of type \c CMHighFrequencyHeartRateData API-Since: 17.0
-
SRSensorFaceMetrics
@NotNull public static @NotNull java.lang.String SRSensorFaceMetrics()
[@const] SRSensorFaceMetrics Sensor stream for face metrics collection This stream stores face metrics including:
-
SRSensorOdometer
@NotNull public static @NotNull java.lang.String SRSensorOdometer()
[@const] SRSensorOdometer Odometer sensor stream This stream stores measurements of your distance and speed Fetches from this stream return objects of type \c CMOdometerData as defined in the CoreMotion framework. API-Since: 17.0
-
-