Credential: phương thức tĩnh isConditionalMediationAvailable()

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Phương thức tĩnh isConditionalMediationAvailable() của giao diện Credential trả về một Promise được giải quyết thành false.

Các lớp con của Credential sẽ ghi đè phương thức này nếu chúng hỗ trợ conditional mediation. Xem ví dụ tại PublicKeyCredential.isConditionalMediationAvailable().

Cú pháp

js
Credential.isConditionalMediationAvailable()

Tham số

Không có.

Giá trị trả về

Một Promise được giải quyết thành false.

Ví dụ

js
await Credential.isConditionalMediationAvailable(); // false

Thông số kỹ thuật

Specification
Credential Management Level 1
# dom-credential-isconditionalmediationavailable

Khả năng tương thích của trình duyệt