<GCKLoggerDelegate> Protokol
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Protokol delegasi GCKLogger.
Mewarisi <NSObjectNSObject>.
- (void) logMessage: |
|
(NSString *) |
message |
atLevel: |
|
(GCKLoggerLevel) |
level |
fromFunction: |
|
(NSString *) |
function |
location: |
|
(NSString *) |
location |
|
|
| |
|
optional |
Dipanggil oleh framework untuk mencatat pesan.
- Parameters
-
message | The log message. |
function | The calling function or method. |
level | The logging level. |
location | The source code location of the log statement. |
- Sejak
- 4,0
- (void) logMessage: |
|
(NSString *) |
message |
fromFunction: |
|
(NSString *) |
function |
|
|
| |
|
optional |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2023-12-02 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2023-12-02 UTC."],[[["The `GCKLoggerDelegate` protocol allows developers to receive and handle log messages from the Google Cast framework."],["It defines two optional instance methods for logging messages, one with detailed context (level, function, location) and a deprecated simpler version."],["The `logMessage:atLevel:fromFunction:location:` method is preferred and provides comprehensive information about the log event."],["The deprecated `logMessage:fromFunction:` method offers basic logging functionality but lacks contextual details."]]],[]]