mooball
    Preparing search index...

    Interface LocalRoomConfigCallbacks

    interface LocalRoomConfigCallbacks {
        onAfterHandicapChange?(value: number, customData?: any): void;
        onAfterRoomRecordingChange?(
            value: true | ArrayBuffer,
            customData?: any,
        ): void;
        onBeforeHandicapChange?(value: number): any;
        onBeforeRoomRecordingChange?(value: true | ArrayBuffer): any;
    }
    Index

    Methods

    • Called just after the local ping handicap value has been changed.

      Parameters

      • value: number

        The new ping handicap value in milliseconds. Range: 0 <= value <= 300.

      • OptionalcustomData: any

        the custom data that was returned from the previous callback.

      Returns void

      void.

    • Called just after room recording has been started or stopped.

      Parameters

      • value: true | ArrayBuffer

        If true, recording has just been started,

        • Else, the recording has just stopped and the recorded data is returned in value as an ArrayBuffer. You might want to write the contents to a version-3 replay file.
      • OptionalcustomData: any

        the custom data that was returned from the previous callback.

      Returns void

      void.

    • Called just after the local ping handicap value has been changed.

      Parameters

      • value: number

        The new ping handicap value in milliseconds. Range: 0 <= value <= 300.

      Returns any

      void or a custom data to pass to the next callback.

    • Called just after room recording has been started or stopped.

      Parameters

      • value: true | ArrayBuffer

        If true, recording has just been started,

        • Else, the recording has just stopped and the recorded data is returned in value as an ArrayBuffer. You might want to write the contents to a version-3 replay file.

      Returns any

      void or a custom data to pass to the next callback.