# interface_sdk-js_2 **Repository Path**: leoyaang/interface_sdk-js_2 ## Basic Information - **Project Name**: interface_sdk-js_2 - **Description**: 暂无描述 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: https://gitee.com/openharmony/interface_sdk-js - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 4844 - **Created**: 2025-09-13 - **Last Updated**: 2025-09-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README /** * Register picture-in-picture active status change listener. * * @param { 'activeStatusChange' } type - Registration type, active status change, 'activeStatusChange' * @param { Callback } callback - Used to handle {'activeStatusChange'} command. * @throws { BusinessError } 801 - Capability not supported. * function off('pipActiveStatusChange', callback) can not work correctly due to limited device capabilities. * @throws { BusinessError } 1300014 - PiP internal error. * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 20 dynamic */ on(type: 'activeStatusChange', callback: Callback): void; /** * Register picture-in-picture active status change listener. * * @param { 'activeStatusChange' } type - Registration type, active status change, 'activeStatusChange' * @param { Callback } callback - Used to handle {'activeStatusChange'} command. * @throws { BusinessError } 801 - Capability not supported. * function off('pipActiveStatusChange', callback) can not work correctly due to limited device capabilities. * @throws { BusinessError } 1300014 - PiP internal error. * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 20 dynamic */ on(type: 'activeStatusChange', callback: Callback): void; /** * Register picture-in-picture active status change listener. * * @param { 'activeStatusChange' } type - Registration type, active status change, 'activeStatusChange' * @param { Callback } callback - Used to handle {'activeStatusChange'} command. * @throws { BusinessError } 801 - Capability not supported. * function off('pipActiveStatusChange', callback) can not work correctly due to limited device capabilities. * @throws { BusinessError } 1300014 - PiP internal error. * @syscap SystemCapability.Window.SessionManager * @since 22 static */ onActiveStatusChange(calback: Callback): void; /** * Unregister picture-in-picture active status change listener * @param { 'activeStatusChange' } type - Registration type, active status change, 'activeStatusChange' * @param { Callback } callback - Used to handle {'activeStatusChange'} command. If not provided, * all callbacks for the given event type will be removed. * @throws { BusinessError } 801 - Capability not supported. * function off('pipActiveStatusChange', callback) can not work correctly due to limited device capabilities. * @throws { BusinessError } 1300014 - PiP internal error. * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since 20 dynamic */ off(type: 'controlEvent', callback?: Callback): void; /** * Unregister picture-in-picture active status change listener * @param { 'activeStatusChange' } type - Registration type, active status change, 'activeStatusChange' * @param { Callback } callback - Used to handle {'activeStatusChange'} command. If not provided, * all callbacks for the given event type will be removed. * @throws { BusinessError } 801 - Capability not supported. * function off('pipActiveStatusChange', callback) can not work correctly due to limited device capabilities. * @throws { BusinessError } 1300014 - PiP internal error. * @syscap SystemCapability.Window.SessionManager * @since 22 static */ offActiveStatusChange(callback?: Callback): void;