Interface CMWaterSubmersionManagerDelegate


  • public interface CMWaterSubmersionManagerDelegate
    CMWaterSubmersionManagerDelegate Discussion: Delegate protocol to receive updates from the CMWaterSubmersionManager API. Methods will be invoked on the main queue. API-Since: 16.0
    • Method Detail

      • managerDidUpdateEvent

        void managerDidUpdateEvent​(@NotNull
                                   @NotNull CMWaterSubmersionManager manager,
                                   @NotNull
                                   @NotNull CMWaterSubmersionEvent event)
        manager:didUpdateEvent Discussion: Delegate method is called when there is a new event available. When the delegate is first set, this method will invoked immediately so that the client always has the current state.
      • managerDidUpdateMeasurement

        void managerDidUpdateMeasurement​(@NotNull
                                         @NotNull CMWaterSubmersionManager manager,
                                         @NotNull
                                         @NotNull CMWaterSubmersionMeasurement measurement)
        manager:didUpdateMeasurement: Discussion: Delegate method is called when there is a new depth/pressure measurement available. When the device is not in the Submerged state, the measurement will only include the surface pressure and submersion state.
      • managerDidUpdateTemperature

        void managerDidUpdateTemperature​(@NotNull
                                         @NotNull CMWaterSubmersionManager manager,
                                         @NotNull
                                         @NotNull CMWaterTemperature measurement)
        manager:didUpdateTemperature: Discussion: Delegate method is called when there is a new temperature measurement available. New measurements will only be available while device is in the WaterSubmerged state.
      • managerErrorOccurred

        void managerErrorOccurred​(@NotNull
                                  @NotNull CMWaterSubmersionManager manager,
                                  @NotNull
                                  @NotNull NSError error)
        manager:errorOccurred: Discussion: Delegate method is called when an error has occurred.