Click or drag to resize

PackageInstallerCreateSession Method

Call this method to create a PackageInstallerSession

Namespace:  Com.Datalogic.Device.App
Assembly:  datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public virtual PackageInstallerSession CreateSession(
	IPackageInstallerListener listener
)

Parameters

listener
Type: Com.Datalogic.Device.AppIPackageInstallerListener
- IPackageInstallerListener instance that implements the method [M:Com.Datalogic.Device.App.IPackageInstallerListener.OnResult(System.Collections.Generic.IList`1)] to handle the result of methods executed in the session.

Return Value

Type: PackageInstallerSession
intSuccess in case of success, otherwise a possible error code, matching one of the PackageInstallerException error constants.
Exceptions
ExceptionCondition
PackageInstallerException - in case of error when exceptions are enabled through the ErrorManager singleton.
Remarks

Call this method to create a PackageInstallerSession

object. The method can be used to request a session on which it will be possible to group the execution of a sequence of install/uninstall/upgrade commands.

[Android Documentation]

See Also