All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.locale.directionChange.js Maven / Gradle / Ivy

import EventProvider from "../EventProvider.js";
const eventProvider = new EventProvider();
const DIR_CHANGE = "directionChange";
/**
 * Attach a callback that will be executed whenever the application calls the "applyDirection" function
 * @public
 * @param listener
 */
const attachDirectionChange = (listener) => {
    eventProvider.attachEvent(DIR_CHANGE, listener);
};
/**
 * Detach a callback that was passed with "attachDirectionChange"
 * @public
 * @param listener
 */
const detachDirectionChange = (listener) => {
    eventProvider.detachEvent(DIR_CHANGE, listener);
};
const fireDirectionChange = () => {
    return eventProvider.fireEvent(DIR_CHANGE, undefined);
};
export { attachDirectionChange, detachDirectionChange, fireDirectionChange, };
//# sourceMappingURL=directionChange.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy