MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / animate

Method animate

CodenameOne/src/com/codename1/components/Ads.java:151–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149
150 /// {@inheritDoc}
151 @Override
152 public boolean animate() {
153 Form parent = getComponentForm();
154 if (parent == null || !parent.isVisible()) {
155 return false;
156 }
157 long t = System.currentTimeMillis();
158 if (t - elapsed > getUpdateDuration() * 1000L) {
159 // we need to update the ad
160 elapsed = t;
161 requestAd();
162 }
163 return super.animate();
164 }
165
166 /// {@inheritDoc}
167 @Override

Callers

nothing calls this directly

Calls 6

currentTimeMillisMethod · 0.95
getUpdateDurationMethod · 0.95
requestAdMethod · 0.95
isVisibleMethod · 0.65
animateMethod · 0.65
getComponentFormMethod · 0.45

Tested by

no test coverage detected