PackageInstaller.SessionParams.SetPackageSource(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Optionally indicate the package source of the app being installed.
[Android.Runtime.Register("setPackageSource", "(I)V", "GetSetPackageSource_IHandler", ApiSince=33)]
public virtual void SetPackageSource (int packageSource);
[<Android.Runtime.Register("setPackageSource", "(I)V", "GetSetPackageSource_IHandler", ApiSince=33)>]
abstract member SetPackageSource : int -> unit
override this.SetPackageSource : int -> unit
Parameters
- packageSource
- Int32
- Attributes
Remarks
Optionally indicate the package source of the app being installed. This is informational and may be used as a signal by the system.
An installer should specify #PACKAGE_SOURCE_OTHER
if no other package source constant adequately reflects the source for this session.
The default value is #PACKAGE_SOURCE_UNSPECIFIED
.
Java documentation for android.content.pm.PackageInstaller.SessionParams.setPackageSource(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.