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 17 package android.content.pm; 18 19 import android.content.Intent; 20 import android.os.Bundle; 21 22 /** 23 * Information needed to make an instant application resolution request. 24 * @hide 25 */ 26 public 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 InstantAppRequest(AuxiliaryResolveInfo responseObj, Intent origIntent, String resolvedType, String callingPackage, int userId, Bundle verificationBundle)42 public InstantAppRequest(AuxiliaryResolveInfo responseObj, Intent origIntent, 43 String resolvedType, String callingPackage, int userId, Bundle verificationBundle) { 44 this.responseObj = responseObj; 45 this.origIntent = origIntent; 46 this.resolvedType = resolvedType; 47 this.callingPackage = callingPackage; 48 this.userId = userId; 49 this.verificationBundle = verificationBundle; 50 } 51 } 52