示例#1
0
 /*! @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
 }
示例#2
0
 /*! @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
 }