/*! @brief Generates dummy data for the supplied data types. Mostly for testing in the Simulator. */ public void GenerateDummyData(HealthKitDataTypes types) { #if UNITY_IOS && !UNITY_EDITOR Debug.Log("--- generating debug data ---"); _GenerateDummyData(types.Transmit()); #else Debug.LogError("Dummy data is not currently available in the editor."); #endif }
/*! @brief requests authorization to read the supplied data types, with a completion handler. */ public void Authorize(HealthKitDataTypes types, AuthorizationHandler handler) { #if UNITY_IOS && !UNITY_EDITOR if (handler != null) { this.authorizationHandler += handler; } Debug.Log("--- authorizing ---"); _Authorize(types.Transmit()); #endif }