All files / user_activation.ts

100.00% Branches 0/0
100.00% Lines 24/24
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
x1
x5
 
x5
x5
x5
x352
x352
 
x5
x5
x5
x8
x8
 
x5
x7
x7
 
x5
x5
x5
x8
x8
 
x5
x7
x7
x5


























// Imports
import { type _UserActivation, illegal, type internal } from "./_.ts"

/** https://developer.mozilla.org/en-US/docs/Web/API/UserActivation */
export class UserActivation implements _UserActivation {
  constructor(_?: { [internal]?: boolean }) {
    illegal(arguments)
  }

  // https://developer.mozilla.org/en-US/docs/Web/API/UserActivation/isActive
  // Note: forced as no user interaction can occur
  get isActive(): boolean {
    return false
  }

  set isActive(_: boolean) {
    return
  }

  // https://developer.mozilla.org/en-US/docs/Web/API/UserActivation/hasBeenActive
  // Note: forced as no user interaction can occur
  get hasBeenActive(): boolean {
    return false
  }

  set hasBeenActive(_: boolean) {
    return
  }
}