1/* 2 * Copyright (C) 2016 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package android.content.pm; 18 19import android.content.Intent; 20import android.os.Bundle; 21 22/** 23 * Information needed to make an instant application resolution request. 24 * @hide 25 */ 26public final class InstantAppRequest { 27 /** Response from the first phase of instant application resolution */ 28 public final AuxiliaryResolveInfo responseObj; 29 /** The original intent that triggered instant application resolution */ 30 public final Intent origIntent; 31 /** Resolved type of the intent */ 32 public final String resolvedType; 33 /** The name of the package requesting the instant application */ 34 public final String callingPackage; 35 /** ID of the user requesting the instant application */ 36 public final int userId; 37 /** 38 * Optional extra bundle provided by the source application to the installer for additional 39 * verification. */ 40 public final Bundle verificationBundle; 41 /** Whether resolution occurs because an application is starting */ 42 public final boolean resolveForStart; 43 44 public InstantAppRequest(AuxiliaryResolveInfo responseObj, Intent origIntent, 45 String resolvedType, String callingPackage, int userId, Bundle verificationBundle, 46 boolean resolveForStart) { 47 this.responseObj = responseObj; 48 this.origIntent = origIntent; 49 this.resolvedType = resolvedType; 50 this.callingPackage = callingPackage; 51 this.userId = userId; 52 this.verificationBundle = verificationBundle; 53 this.resolveForStart = resolveForStart; 54 } 55} 56