MCPcopy
hub / github.com/BlueWallet/BlueWallet / setIsHandOffUseEnabled

Function setIsHandOffUseEnabled

components/HandOffComponent.ios.tsx:23–32  ·  view source on GitHub ↗
(value: boolean)

Source from the content-addressed store, hash-verified

21const MemoizedHandOffComponent = React.memo(HandOffComponent);
22
23export const setIsHandOffUseEnabled = async (value: boolean) => {
24 try {
25 await DefaultPreference.setName(GROUP_IO_BLUEWALLET);
26 await DefaultPreference.set(BlueApp.HANDOFF_STORAGE_KEY, value.toString());
27 console.debug('setIsHandOffUseEnabled', value);
28 } catch (error) {
29 console.error('Error setting handoff enabled status:', error);
30 throw error; // Propagate error to caller
31 }
32};
33
34export const getIsHandOffUseEnabled = async (): Promise<boolean> => {
35 try {

Callers

nothing calls this directly

Calls 3

setMethod · 0.80
toStringMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected