Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
io.flutter.embedding.engine.systemchannels.PlatformChannel.HapticFeedbackType Enum Reference

Public Member Functions

 HapticFeedbackType (@Nullable String encodedName)
 

Static Public Member Functions

static HapticFeedbackType fromValue (@Nullable String encodedName) throws NoSuchFieldException
 

Public Attributes

 STANDARD =(null)
 
 LIGHT_IMPACT =("HapticFeedbackType.lightImpact")
 
 MEDIUM_IMPACT =("HapticFeedbackType.mediumImpact")
 
 HEAVY_IMPACT =("HapticFeedbackType.heavyImpact")
 
 SELECTION_CLICK =("HapticFeedbackType.selectionClick")
 

Detailed Description

The types of haptic feedback that the Android OS can generate on behalf of an application.

Definition at line 589 of file PlatformChannel.java.

Constructor & Destructor Documentation

◆ HapticFeedbackType()

io.flutter.embedding.engine.systemchannels.PlatformChannel.HapticFeedbackType.HapticFeedbackType ( @Nullable String  encodedName)
inline

Definition at line 609 of file PlatformChannel.java.

609 {
610 this.encodedName = encodedName;
611 }

Member Function Documentation

◆ fromValue()

static HapticFeedbackType io.flutter.embedding.engine.systemchannels.PlatformChannel.HapticFeedbackType.fromValue ( @Nullable String  encodedName) throws NoSuchFieldException
inlinestatic

Definition at line 597 of file PlatformChannel.java.

597 {
598 for (HapticFeedbackType feedbackType : HapticFeedbackType.values()) {
599 if ((feedbackType.encodedName == null && encodedName == null)
600 || (feedbackType.encodedName != null && feedbackType.encodedName.equals(encodedName))) {
601 return feedbackType;
602 }
603 }
604 throw new NoSuchFieldException("No such HapticFeedbackType: " + encodedName);
605 }

Member Data Documentation

◆ HEAVY_IMPACT

io.flutter.embedding.engine.systemchannels.PlatformChannel.HapticFeedbackType.HEAVY_IMPACT =("HapticFeedbackType.heavyImpact")

Definition at line 593 of file PlatformChannel.java.

◆ LIGHT_IMPACT

io.flutter.embedding.engine.systemchannels.PlatformChannel.HapticFeedbackType.LIGHT_IMPACT =("HapticFeedbackType.lightImpact")

Definition at line 591 of file PlatformChannel.java.

◆ MEDIUM_IMPACT

io.flutter.embedding.engine.systemchannels.PlatformChannel.HapticFeedbackType.MEDIUM_IMPACT =("HapticFeedbackType.mediumImpact")

Definition at line 592 of file PlatformChannel.java.

◆ SELECTION_CLICK

io.flutter.embedding.engine.systemchannels.PlatformChannel.HapticFeedbackType.SELECTION_CLICK =("HapticFeedbackType.selectionClick")

Definition at line 594 of file PlatformChannel.java.

◆ STANDARD

io.flutter.embedding.engine.systemchannels.PlatformChannel.HapticFeedbackType.STANDARD =(null)

Definition at line 590 of file PlatformChannel.java.


The documentation for this enum was generated from the following file: