Newer API levels (from 26 on) support determining amplitude control capability and varying the amplitude of vibrations, both in one-shot and in waveform-based patterns. This adds basic support for working with these aspects while: (1) providing a safe default for devices on earlier API levels (which notice no change in behaviour); and (2) enabling apps to begin future-proofing for newer API levels by testing the control capability.
Newer API levels (from 26 on) support determining amplitude control capability and varying the amplitude of vibrations, both in one-shot and in waveform-based patterns. This adds basic support for working with these aspects while: (1) providing a safe default for devices on earlier API levels (which notice no change in behaviour); and (2) enabling apps to begin future-proofing for newer API levels by testing the control capability.