INNER CODE UNIT · JavaScript

addDefaultsToSnapShotFunc

react-native-ar/react-native-arkit · ARKit.js:196

const addDefaultsToSnapShotFunc = funcName => (
  { target = 'cameraRoll', format = 'png' } = {},
) => ARKitManager[funcName]({ target, format });

ARKit.snapshot = addDefaultsToSnapShotFunc('snapshot');
ARKit.snapshotCamera = addDefaultsToSnapShotFunc('snapshotCamera');

ARKit.exportModel = presetId => {
  const id = presetId || generateId();
  const property = { id };
  return ARKitManager.exportModel(property).then(result => ({ ...result, id }));
};

ARKit.pickColors = pickColors;
ARKit.pickColorsFromFile = pickColorsFromFile;
ARKit.propTypes = {
  debug: PropTypes.bool,
  planeDetection,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…