getVolume method

FutureOr<int> getVolume(
  1. int effectId
)

@detail api @brief Gets the current volume. @param effectId Audio effect ID @return - >0: Success, the current volume value. - < 0: Failed. @note Call this API after start{@link #IAudioEffectPlayer#start}.

Implementation

FutureOr<int> getVolume(int effectId) async {
  return await nativeCall('getVolume', [effectId]);
}