Home | History | Annotate | Download | only in features

Lines Matching full:your

12   <li><a href="#declaring">Declaring Your Activity Supports
14 <li><a href="#pip_button">Switching Your Activity to Picture-in-picture</a>
38 background. The PIP window lets users multitask while using your app, which
41 <p>Your app can decide when to trigger PIP mode. Here are some examples of
45 <li>Your app can move a video into PIP mode when the user navigates
47 <li>Your app can switch a video into PIP mode while a user watches the end
50 <li>Your app can provide a way for users to queue up additional content while
68 provide the pinned video overlay window. To add PIP to your app, you need to
69 register your activities that support PIP, switch your activity to PIP mode as
73 <h2 id="declaring">Declaring Your Activity Supports Picture-in-picture</h2>
76 If you want support PIP in your app, register your video
77 activity in your manifest by setting
80 that your activity handles layout configuration changes so that your activity
92 <p>When registering your activity, keep in mind that in PIP mode, your
99 <h2 id="pip_button">Switching Your Activity to Picture-in-picture</h2>
101 When you need to switch your activity into PIP mode, call
116 <p>Adding a PIP button to your media control bar lets your user easily switch
129 <p>When your activity enters PIP mode, your activity should only show video
130 playback. Remove UI elements before your activity enters PIP,
131 and restore these elements when your activity becomes full-screen again.
134 disable your UI elements as needed, for example:</p>
152 <p>When your activity switches to PIP, the system considers the activity in a
153 paused state, and calls your activity's {@link android.app.Activity#onPause
158 calls your activity's {@link android.app.Activity#onStop onStop()} and
160 having to check if your app is in PIP mode in
164 <p>If you have to pause playback in your {@link android.app.Activity#onPause
181 <p>When your activity switches out of PIP mode back to full-screen mode, the
182 system resumes your activity and calls your
188 <p>In your app, a user might select a new video when browsing for content on
195 <code>android:launchMode</code> to <code>singleTask</code> in your manifest:
206 <p>In your activity, override {@link android.app.Activity#onNewIntent
213 your activity into PIP mode, avoid showing anything except video content.
214 Track when your activity enters PIP mode and hide UI elements, as described
229 <p>When your app is in PIP mode, video playback in the PIP window can cause