From 81642a1e2113875115945d17ac89b52d278d0584 Mon Sep 17 00:00:00 2001 From: caochunlei Date: Mon, 24 Jan 2022 02:34:25 +0000 Subject: [PATCH] caochunlei1@huawei.com Signed-off-by: caochunlei --- api/application/AbilityContext.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/application/AbilityContext.d.ts b/api/application/AbilityContext.d.ts index 345363d17e..d97ef75ceb 100644 --- a/api/application/AbilityContext.d.ts +++ b/api/application/AbilityContext.d.ts @@ -121,4 +121,15 @@ export default class AbilityContext extends Context { */ disconnectAbility(connection: number, callback:AsyncCallback): void; disconnectAbility(connection: number): Promise; + + /** + * Set mission label of current ability. + * + * @devices phone, tablet, tv, wearable, car + * @since 8 + * @sysCap AAFwk + * @param label The label of ability that showed in recent missions. + */ + setMissionLabel(label: string, callback:AsyncCallback): void; + setMissionLabel(label: string): Promise; } \ No newline at end of file -- Gitee