From 9fa6a80873de9517f56dd56d4765f0ef21db2263 Mon Sep 17 00:00:00 2001 From: ccfriend Date: Wed, 27 Aug 2025 20:44:27 +0800 Subject: [PATCH 1/2] modify api annotation --- api/@ohos.multimedia.avsession.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/@ohos.multimedia.avsession.d.ts b/api/@ohos.multimedia.avsession.d.ts index dff0d7365d..7e95671d23 100644 --- a/api/@ohos.multimedia.avsession.d.ts +++ b/api/@ohos.multimedia.avsession.d.ts @@ -452,7 +452,7 @@ declare namespace avSession { * Unregister distributed session changed callback * @param { 'distributedSessionChange' } type - Registration Type, distributed session change * @param { DistributedSessionType } distributedSessionType - Indicates the distributed session type - * @param { Callback> } callback - The callback will return remote changed AVSessionController. + * @param { Callback> } [callback] - The callback will return remote changed AVSessionController. * @throws { BusinessError } 202 - Not System App. * @throws { BusinessError } 6600101 - Session service exception. * @syscap SystemCapability.Multimedia.AVSession.Manager @@ -2064,7 +2064,7 @@ declare namespace avSession { /** * Unsubscribes to playWithAssetId events. * @param { 'playWithAssetId' } type - Event type. - * @param { Callback } callback - Callback used to handle the 'playWithAssetId' command. + * @param { Callback } [callback] - Callback used to handle the 'playWithAssetId' command. * @throws { BusinessError } 6600101 - Session service exception. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -2239,7 +2239,7 @@ declare namespace avSession { /** * Unregister setTargetLoopMode command callback * @param { 'setTargetLoopMode' } type - Registration Type 'setTargetLoopMode' - * @param { Callback } callback - Used to handle setTargetLoopMode command.The callback provides the {@link LoopMode} + * @param { Callback } [callback] - Used to handle setTargetLoopMode command.The callback provides the {@link LoopMode} * @throws { BusinessError } 6600101 - Session service exception. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core -- Gitee From 9a80002bcb538310067854eff754d09e6bc0a117 Mon Sep 17 00:00:00 2001 From: ccfriend Date: Wed, 27 Aug 2025 13:48:22 +0000 Subject: [PATCH 2/2] update api/@ohos.multimedia.avsession.d.ts. Signed-off-by: ccfriend -- Gitee