1 package com.android.systemui.mediaprojection.appselector 2 3 import android.app.ActivityOptions.LaunchCookie 4 5 /** 6 * Interface that allows to continue the media projection flow and return the selected app 7 * result to the original caller. 8 */ 9 interface MediaProjectionAppSelectorResultHandler { 10 /** 11 * Return selected app to the original caller of the media projection app picker. 12 * @param launchCookie launch cookie of the launched activity of the target app, always set 13 * regardless of launching a new task or a recent task 14 * @param taskId id of the launched task of the target app, only set to a positive int when 15 * launching a recent task, otherwise set to -1 by default 16 */ returnSelectedAppnull17 fun returnSelectedApp(launchCookie: LaunchCookie, taskId: Int) 18 } 19