Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Engage SDK'sı, farklı içerik türleri yayınlamak için SDK'nın uygulamanıza nasıl entegre edileceğini gösteren bir dizi örnek uygulama içerir. Bu uygulamalar, SDK'yı nasıl kullanacağınızı öğrenmek, kendi uygulamanızda entegrasyona başlamak ve bazı en iyi uygulamaları öğrenmek için mükemmel bir yöntemdir.
Örnek uygulama çalıştırmak için Engage SDK Örnekleri deposunu klonlayın ve örnek uygulama projesini tercih ettiğiniz IDE'de açın. Ardından, uygulamayı derleyip çalıştırmak için README dosyasında yer alan talimatları uygulayın.
Örnek uygulamalar deposu, farklı içerik türlerinin yayınlanmasını gösteren iki uygulama içerir:
Bu örnek uygulamada, Engage SDK API'leri kullanılarak "okuma" içeriğinin nasıl entegre edileceği gösterilmektedir. Uygulama, Engage SDK'sı: Üçüncü taraf teknik entegrasyon talimatları başlıklı makalede belirtilen farklı API'lerin kullanımını içeriyor
Bu örnek uygulamayı incelerken aşağıdakileri göz önünde bulundurun:
Uygulama tamamen Java'da yazılmış olmalıdır.
Kodun ana odak noktası, Engage SDK'sı aracılığıyla yayınlamak için gereken tüm kodu içeren read/publish dizinindedir.
Uygulama, Engage API dokümanlarındaki öneriler doğrultusunda WorkManager'ın kullanımını gösterir. EngageServiceWorker, yayınlamayı yapan işleyicidir.
EbookToEntityConverter, yayınlamak için bir öğe oluşturma yöntemleri içerir. Bu sınıf, uygulamanızda zaten mevcut olan verilerden nasıl öğe oluşturulacağını göstermek için yararlıdır.
Bu örnek uygulamada, Engage SDK API'leri kullanılarak video içeriğinin nasıl entegre edileceği gösterilmektedir. Uygulama, Engage SDK Watch: Third-party technical integration instructions (Engage SDK Watch: Üçüncü taraf teknik entegrasyon talimatları) başlıklı makalede belirtilen farklı API'lerin kullanımını içeriyor
Bu örnek uygulamayı incelerken aşağıdakileri göz önünde bulundurun:
Uygulama tamamen Kotlin ile yazılmış olmalıdır.
Kodun ana odak noktası, Engage SDK'sı aracılığıyla yayınlamak için gereken tüm kodu içeren watch/publish dizinindedir.
Uygulama, Engage API dokümanlarındaki önerilen şekilde WorkManager'ın kullanımını gösterir. EngageServiceWorker, yayınlamayı yapan işleyicidir.
ItemToEntityConverter, yayınlamak için bir öğe oluşturma yöntemleri içerir. Bu sınıf, uygulamanızda zaten mevcut olan verilerden bir öğenin nasıl oluşturulacağını göstermek için yararlıdır.
Engage SDK örnek uygulamalarını kullanmayla ilgili bazı ek ipuçları:
Uygulamanızda belirli Engage SDK API'lerinin nasıl çağrılacağını anlamak için örnek uygulamaları kullanın.
Engage SDK'sının farklı özellikleriyle denemeler yapın.
Destek
Burada ele alınmayan sorularınız varsa engage-developers@google.com adresinden bizimle iletişime geçebilirsiniz.
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-27 UTC."],[],[],null,["# Engage SDK Sample Apps\n\nThe Engage SDK includes a set of sample apps that demonstrate how to integrate\nthe SDK in your app to publish different types of content. These apps are a\ngreat way to learn how to use the SDK, to get started with the integration in\nyour own app, as well as some best practices.\n\nThe [sample apps](https://github.com/googlesamples/engage-sdk-samples) are available in the following\nlanguages:\n\n- Java\n- Kotlin\n\nTo run a sample app, clone the\n[Engage SDK Samples repository](https://github.com/googlesamples/engage-sdk-samples) and open the sample\napp project in your preferred IDE. Then, follow the instructions in the\nREADME file to build and run the app.\n\nThe sample apps repository includes two apps to demonstrate publishing different\ntypes of content:\n\n- [Read Sample App](#read-sample-app)\n- [Watch Sample App](#watch-sample-app)\n\nRead Sample App\n---------------\n\nThis sample app demonstrates how to integrate 'reading' content using the Engage\nSDK APIs. The app includes the usage of different APIs mentioned in the\n[Engage SDK Read: Third-party technical integration instructions](/guide/playcore/engage/read)\n\nWhen reviewing this sample app, consider the following:\n\n- The app is written entirely in Java.\n- The main focal point of the code is in the [read/publish](https://github.com/googlesamples/engage-sdk-samples/tree/main/read/app/src/main/java/com/google/samples/quickstart/engagesdksamples/read/publish) directory, containing all code necessary to publish through the Engage SDK.\n- The app demonstrates the use of WorkManager as recommended in the Engage API docs, and [EngageServiceWorker](https://github.com/googlesamples/engage-sdk-samples/blob/main/read/app/src/main/java/com/google/samples/quickstart/engagesdksamples/read/publish/EngageServiceWorker.java) is the worker which does the publishing.\n- [EbookToEntityConverter](https://github.com/googlesamples/engage-sdk-samples/blob/main/read/app/src/main/java/com/google/samples/quickstart/engagesdksamples/read/converters/EbookToEntityConverter.java) contains methods to build an Entity for publishing. This class is useful to show how to construct an entity from the data that already exists in your application.\n\n| **Note:** The sample app uses one worker for publishing, passing in flags indicating which cluster to publish. Depending on your app architecture, you might choose to use multiple workers.\n\n[Link to Engage SDK Read Sample App on Github](https://github.com/googlesamples/engage-sdk-samples/tree/main/read)\n\nWatch Sample App\n----------------\n\nThis sample app demonstrates how to integrate video content using the Engage SDK\nAPIs. The app includes the usage of different APIs mentioned in the\n[Engage SDK Watch: Third-party technical integration instructions](/guide/playcore/engage/watch)\n\nWhen reviewing this sample app, consider the following:\n\n- The app is written entirely in Kotlin.\n- The main focal point of the code is in the [watch/publish](https://github.com/googlesamples/engage-sdk-samples/tree/main/watch/app/src/main/java/com/google/samples/quickstart/engagesdksamples/watch/publish) directory, containing all code necessary to publish through the Engage SDK.\n- The app demonstrates the use of WorkManager as recommended in the Engage API docs, and [EngageServiceWorker](https://github.com/googlesamples/engage-sdk-samples/blob/main/watch/app/src/main/java/com/google/samples/quickstart/engagesdksamples/watch/publish/EngageServiceWorker.kt) is the worker which does the publishing.\n- [ItemToEntityConverter](https://github.com/googlesamples/engage-sdk-samples/blob/main/watch/app/src/main/java/com/google/samples/quickstart/engagesdksamples/watch/data/converters/ItemToEntityConverter.kt) contains methods to build an Entity for publishing. This class is useful to show how to construct an entity from the data that already exists in your application.\n\n| **Note:** The sample app uses one worker for publishing, passing in flags indicating which cluster to publish. Depending on your app architecture, you might choose to use multiple workers.\n\n[Link to Engage SDK Watch Sample App on Github](https://github.com/googlesamples/engage-sdk-samples/tree/main/watch)\n\nAdditional Tips\n---------------\n\nHere are some additional tips for using the Engage SDK sample apps:\n\n- Use the sample apps to understand how to call specific Engage SDK APIs in your app.\n- Experiment with different features of the Engage SDK.\n\nSupport\n-------\n\nContact [engage-developers@google.com](mailto:engage-developers@google.com)\nif you have any questions that are not covered here."]]