• Preparing search index...
  • The search index is not available
@deep-foundation/capacitor-motion
  • @deep-foundation/capacitor-motion
  • WithMotionSync

Function WithMotionSync

  • WithMotionSync(options): null | Element
  • A component wrapper for WithAccelerationSync and WithOrientationSync

    Parameters

    • options: WithMotionSyncOptions

    Returns null | Element

    Remarks

    Render this component when WithMotionSyncOptions.deep and WithMotionSyncOptions.deviceLinkId are ready

    Example

    function MyComponent(deep, deviceLinkId) {
    return deep.linkId && deviceLinkId ?
    <WithMotionSync deep={deep} deviceLinkId={deviceLinkId} /> :
    null;
    }
    • Defined in src/react/components/with-motion-sync.tsx:22

Settings

Member Visibility

Theme

@deep-foundation/capacitor-motion
  • Loading...

Generated using TypeDoc