1 package expo.interfaces.devmenu 2 3 import com.facebook.react.bridge.ReadableMap 4 import com.facebook.react.bridge.WritableMap 5 6 interface DevMenuPreferencesInterface { 7 /** 8 * Whether to enable shake gesture. 9 */ 10 var motionGestureEnabled: Boolean 11 12 /** 13 * Whether to enable three-finger long press gesture. 14 */ 15 var touchGestureEnabled: Boolean 16 17 /** 18 * Whether to enable key commands. 19 */ 20 var keyCommandsEnabled: Boolean 21 22 /** 23 * Whether to automatically show the dev menu once its delegate is set and the bridge is loaded. 24 */ 25 var showsAtLaunch: Boolean 26 27 /** 28 * Returns `true` only if the user finished onboarding, `false` otherwise. 29 */ 30 var isOnboardingFinished: Boolean 31 32 /** 33 * Serializes settings into a [WritableMap] so they can be passed through the bridge. 34 */ serializenull35 fun serialize(): WritableMap 36 37 /** 38 * Updates settings from [ReadableMap] - the map can be a partial of all the possible settings options 39 */ 40 fun setPreferences(settings: ReadableMap) 41 } 42