コード例 #1
0
ファイル: NodeDevice.cs プロジェクト: weeble/ohos
 public AppListService(DvDevice aDevice, IAppShell aAppShell)
 {
     iDevice = aDevice;
     iProvider = new AppListProvider(iDevice);
     iDevice.SetEnabled();
     iCallbackTracker = new SafeCallbackTracker();
     iHandler = iCallbackTracker.Create<AppStatusChangeEventArgs>(OnAppStatusChanged);
     iAppShell = aAppShell;
     iAppShell.AppStatusChanged += iHandler;
     OnAppStatusChanged(this, new AppStatusChangeEventArgs());
 }
コード例 #2
0
ファイル: AppManager.cs プロジェクト: weeble/ohos
 public AppManager(
     string aResourceUri,
     IEnumerable<DvDevice> aDevices,
     Func<DvDevice, IAppManagerActionHandler, string, IAppManagerProvider> aProviderConstructor,
     IAppShell aAppShell,
     IDownloadManager aDownloadManager)
 {
     iDownloadManager = aDownloadManager;
     iDownloadManager.DownloadCountChanged += OnDownloadCountChanged;
     iAppShell = aAppShell;
     iProviders = aDevices.Select(aDevice=>aProviderConstructor(aDevice, this, aResourceUri)).ToList();
     iAppShell.AppStatusChanged += OnAppStatusChanged;
     RefreshApps();
 }
コード例 #3
0
ファイル: AppShellModule.cs プロジェクト: weeble/ohos
 public void Dispose()
 {
     AppShell.Dispose();
     AppShell = null;
 }
コード例 #4
0
 public AppManagerConsoleCommands(IAppShell aAppAppShell)
 {
     iAppAppShell = aAppAppShell;
 }