Skip to main content
Version: v3+

getAllAppServices

Start from API_LEVEL 3.0 . Please refer to API_LEVEL.

Get the list of running App services, used to query the service status.

info

permission code: device:os.bg_service

Type​

function getAllAppServices(): Result

Parameters​

Result​

TypeDescription
Array<string>Get the list of currently running App services

Example​

import { getAllAppServices } from '@zos/app-service'

const serviceList = getAllAppServices()
console.log(serviceList)