Protokol <GCKLoggerDelegate>
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Protokol delegasi GCKLogger.
Mewarisi <NSObjectNSObject>.
- (void) logFromFunction: |
|
(const char *) |
function |
message: |
|
(NSString *) |
message |
|
|
| |
|
optional |
- (void) logMessage: |
|
(NSString *) |
message |
fromFunction: |
|
(NSString *) |
function |
|
|
| |
|
optional |
Mencatat pesan ke dalam log.
- Parameters
-
function | The calling function, normally obtained from __func__ . |
message | The log message. |
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 2022-12-06 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 2022-12-06 UTC."],[[["The `GCKLoggerDelegate` protocol allows developers to customize the logging behavior of the Google Cast framework."],["It provides two methods for logging messages: `logFromFunction:message:` (deprecated) and `logMessage:fromFunction:`."],["The `logMessage:fromFunction:` method is the preferred way to log messages and includes the message and the calling function."],["Both methods are optional and can be implemented as needed by the delegate."]]],["The GCKLoggerDelegate protocol, inheriting from NSObject, allows logging messages. It includes two instance methods: `logFromFunction:message:` and `logMessage:fromFunction:`. Both methods facilitate logging a message, with `logFromFunction:message:` being deprecated in favor of `logMessage:fromFunction:`. Each method takes two parameters, a message and the calling function, usually acquired via `__func__`. The log message should be provided as a string.\n"]]