hideHomeButton(params: Object)

Requires:
MiniKit≥1.0.0@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
import { hideHomeButton } from '@ray-js/ray';

// Promise usage
try {
  const res = await hideHomeButton();
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

Description

Hide the Back to Home button

Parameters

PropertyTypeRequiredDescription
complete() => voidNoCompletion callback (executed on both success and failure)
success() => voidNoCallback on successful API call
fail(params: Object) => voidNoFailure callback
fail callback parameters
PropertyTypeDescription
errorMsgstringError message
errorCodestring | numberError code
Error extension

Return Value

None

Examples

import { hideHomeButton } from '@ray-js/ray'

hideHomeButton({
  success: data => { console.log(data); },
  fail: error => { console.error(error); },
});