Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (UTC)."],[[["\u003cp\u003eDescribes a sender application and its properties, including platform, package ID, and URL.\u003c/p\u003e\n"],["\u003cp\u003eSenderApplication objects are typically not created directly by the client.\u003c/p\u003e\n"],["\u003cp\u003eIncludes a constructor that takes the sender platform as an argument.\u003c/p\u003e\n"]]],["The `SenderApplication` class describes a sender application and should typically not be created by the client. It's instantiated with a `platform` parameter, which cannot be null. Key properties include `packageId`, a nullable string representing the application's identifier in the app store, `platform`, which is the supported platform, and `url`, a nullable string containing the launch URL or intent for the application.\n"],null,["# Class: SenderApplication\n\nchrome.[cast](/cast/docs/reference/web_sender/chrome.cast).SenderApplication\n============================================================================\n\nclass static\n\nDescribes a sender application.\nNormally, these objects should not be created by the client.\n\nConstructor\n-----------\n\n### SenderApplication\n\nnew\nSenderApplication(platform)\n\n| #### Parameter ||\n|----------|-------------------------------------------------------------------------------------------------------------------|\n| platform | [chrome.cast.SenderPlatform](/cast/docs/reference/web_sender/chrome.cast#.SenderPlatform) Value must not be null. |\n\nProperties\n----------\n\n### packageId\n\nnullable string\n\nThe identifier or URL for the application in the respective platform's\napp store.\n\n### platform\n\nnon-null [chrome.cast.SenderPlatform](/cast/docs/reference/web_sender/chrome.cast#.SenderPlatform)\n\nThe supported platform.\n\n### url\n\nnullable string\n\nURL or intent to launch the application."]]