saveDialViewTag(params: Object)

Requires:
OutdoorKit≥1.0.1@ray-js/ray≥1.4.40
Platforms:
iOSAndroid
import { outdoor } from '@ray-js/ray';

const { saveDialViewTag } = outdoor;

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

Description

Mini Program watch face settings; configure the data tags shown in the left/center/right areas

Parameters

PropertyTypeRequiredDescription
leftViewTagstringYesWatch face left side
centerViewTagstringYesWatch face center data
rightViewTagstringYesWatch face right side data
complete() => voidNoCompletion callback (executed on both success and failure)
NoCallback 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 { outdoor } from '@ray-js/ray'

outdoor.saveDialViewTag({
  leftViewTag: "xx",
  centerViewTag: "xx",
  rightViewTag: "xx",
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});