about summary refs log tree commit diff
path: root/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.web.ts
blob: cb64d00ceecb64aec3c43d8a954845dcfd6fbb1c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import {NotImplementedError} from '../NotImplemented'
import {AudioCategory} from './types'

export function getIsReducedMotionEnabled(): boolean {
  if (typeof window === 'undefined') {
    return false
  }
  return window.matchMedia('(prefers-reduced-motion: reduce)').matches
}

export function setAudioMixWithOthers(mixWithOthers: boolean): void {
  throw new NotImplementedError({mixWithOthers})
}

export function setAudioCategory(audioCategory: AudioCategory): void {
  throw new NotImplementedError({audioCategory})
}