MCPcopy Create free account
hub / github.com/Snapchat/Valdi / setDynamicTypeScale

Method setDynamicTypeScale

valdi/src/valdi/android/RuntimeManagerWrapper.cpp:268–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266#endif
267
268void RuntimeManagerWrapper::setDynamicTypeScale(jfloat dynamicTypeScale) {
269 _dynamicTypeScale = dynamicTypeScale;
270#if SNAP_DRAWING_ENABLED
271 auto snapDrawingRuntime = _snapDrawingRuntime.getIfCreated();
272 if (snapDrawingRuntime) {
273 applyDynamicTypeScale(snapDrawingRuntime.value());
274 }
275#endif
276}
277
278void RuntimeManagerWrapper::registerAssetLoader(jobject assetLoader,
279 jobject supportedSchemes,

Callers 2

applyDynamicTypeScaleMethod · 0.45

Calls 2

getIfCreatedMethod · 0.80
valueMethod · 0.65

Tested by

no test coverage detected