সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
gpg:: ঘটনা
#include <event.h>
একটি নির্দিষ্ট ইভেন্টের স্থিতি সম্পর্কে ডেটা ধারণকারী একটি একক ডেটা কাঠামো৷
সারাংশ
ডেটা দুটি প্রকারের অন্তর্ভুক্ত: ব্যবহারকারী-নির্দিষ্ট (যেমন, ব্যবহারকারী ইভেন্টটি আনলক করেছে কিনা), এবং বিশ্বব্যাপী (যেমন, ইভেন্টের নাম)।
কনস্ট্রাক্টর এবং ডেস্ট্রাক্টর |
---|
Event ()
|
Event (std::shared_ptr< const EventImpl > impl)
একটি shared_ptr থেকে একটি EventImpl এ একটি Event তৈরি করে। |
Event (const Event & copy_from)
একটি বিদ্যমান Event একটি অনুলিপি তৈরি করে। |
Event ( Event && move_from)
একটি বিদ্যমান Event সরায়। |
~Event () |
পাবলিক ফাংশন |
---|
Count () const | uint64_t ইভেন্টটি যতবার বৃদ্ধি পেয়েছে তার সংখ্যা দেখায়। |
Description () const | const std::string & ঘটনার বিবরণ প্রদান করে। |
Id () const | const std::string & Google Play ডেভেলপার কনসোল আগে থেকে তৈরি করা অনন্য স্ট্রিং প্রদান করে। |
ImageUrl () const | const std::string & এই ইভেন্টের জন্য আইকনের চিত্রের দিকে নিয়ে যাওয়া URL প্রদান করে৷ |
Name () const | const std::string & ইভেন্টের সংক্ষিপ্ত নাম প্রদান করে। |
Valid () const | bool যদি এই ইভেন্টটি ডেটা দ্বারা পরিপূর্ণ হয় এবং একটি সফল প্রতিক্রিয়া স্থিতির সাথে থাকে তবে সত্য ফেরত দেয়; একটি জনবসতিহীন ব্যবহারকারীর দ্বারা তৈরি ইভেন্টের জন্য মিথ্যা বা একটি অসফল প্রতিক্রিয়া স্ট্যাটাস সহ একটি জনবহুল একটির জন্য। |
Visibility () const | ইভেন্টের অবস্থা ফিরিয়ে দেয়: HIDDEN বা REVEALED । |
operator= (const Event & copy_from) | অন্য একটি থেকে অনুলিপি করে এই Event বরাদ্দ করে৷ |
operator= ( Event && move_from) | এটিতে অন্য একটি সরানোর মাধ্যমে এই Event বরাদ্দ করে৷ |
পাবলিক ফাংশন
গণনা
uint64_t Count() const
ইভেন্টটি যতবার বৃদ্ধি পেয়েছে তার সংখ্যা দেখায়।
Event::Valid()
এই ফাংশনটি ব্যবহারযোগ্য হওয়ার জন্য সত্যে ফিরতে হবে।
বর্ণনা
const std::string & Description() const
ঘটনার বিবরণ প্রদান করে।
এটি শুধুমাত্র তখনই বলা যেতে পারে যখন Event::Valid()
true রিটার্ন করে।
ঘটনা
Event(
std::shared_ptr< const EventImpl > impl
)
একটি shared_ptr
থেকে একটি EventImpl
এ একটি Event
তৈরি করে।
API দ্বারা অভ্যন্তরীণ ব্যবহারের জন্য উদ্দিষ্ট.
ঘটনা
Event(
const Event & copy_from
)
একটি বিদ্যমান Event
একটি অনুলিপি তৈরি করে।
ঘটনা
Event(
Event && move_from
)
একটি বিদ্যমান Event
সরায়।
আইডি
const std::string & Id() const
Google Play ডেভেলপার কনসোল আগে থেকে তৈরি করা অনন্য স্ট্রিং প্রদান করে।
আপনার গেম ক্লায়েন্টের একটি ইভেন্ট উল্লেখ করতে এটি ব্যবহার করুন। এটি শুধুমাত্র তখনই বলা যেতে পারে যখন Event::Valid()
true রিটার্ন করে।
ImageUrl
const std::string & ImageUrl() const
এই ইভেন্টের জন্য আইকনের চিত্রের দিকে নিয়ে যাওয়া URL প্রদান করে৷
Event::Valid()
এই ফাংশনটি ব্যবহারযোগ্য হওয়ার জন্য সত্যে ফিরতে হবে।
নাম
const std::string & Name() const
ইভেন্টের সংক্ষিপ্ত নাম প্রদান করে।
100টি অক্ষর পর্যন্ত। এটি শুধুমাত্র তখনই বলা যেতে পারে যখন Event::Valid()
true রিটার্ন করে।
বৈধ
bool Valid() const
যদি এই ইভেন্টটি ডেটা দ্বারা পরিপূর্ণ হয় এবং একটি সফল প্রতিক্রিয়া স্থিতির সাথে থাকে তবে সত্য ফেরত দেয়; একটি জনবসতিহীন ব্যবহারকারীর দ্বারা তৈরি ইভেন্টের জন্য মিথ্যা বা একটি অসফল প্রতিক্রিয়া স্ট্যাটাস সহ একটি জনবহুল একটির জন্য।
এই ইভেন্টে গেটার ফাংশন ( id
, Name
, Description
, ইত্যাদি) ব্যবহারযোগ্য হওয়ার জন্য এটি অবশ্যই সত্য হতে হবে।
দৃশ্যমানতা
EventVisibility Visibility() const
ইভেন্টের অবস্থা ফিরিয়ে দেয়: HIDDEN
বা REVEALED
।
Event::Valid()
এই ফাংশনটি ব্যবহারযোগ্য হওয়ার জন্য সত্যে ফিরতে হবে।
অপারেটর=
Event & operator=(
const Event & copy_from
)
অন্য একটি থেকে অনুলিপি করে এই Event
বরাদ্দ করে৷
অপারেটর=
Event & operator=(
Event && move_from
)
এটিতে অন্য একটি সরানোর মাধ্যমে এই Event
বরাদ্দ করে৷
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# gpg::Event Class Reference\n\ngpg::Event\n==========\n\n`#include \u003cevent.h\u003e`\n\nA single data structure containing data about the status of a specific event.\n\nSummary\n-------\n\nData comprise two types: user-specific (e.g., whether the user has unlocked the event), and global (e.g., event name).\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Event](#classgpg_1_1_event_1a62fd9e25eef0cfb63671b32c15b63de7)`()` ||\n| [Event](#classgpg_1_1_event_1a1cd0e63978cdc2ad42154db032f33afd)`(std::shared_ptr\u003c const EventImpl \u003e impl)` Constructs an [Event](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event) from a `shared_ptr` to an `EventImpl`. ||\n| [Event](#classgpg_1_1_event_1a2b7169ab4771a6bea14b7695ddb462bc)`(const `[Event](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event)` & copy_from)` Creates a copy of an existing [Event](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event). ||\n| [Event](#classgpg_1_1_event_1aba344e939c30bb607368c273f2b426b4)`(`[Event](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event)` && move_from)` Moves an existing [Event](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event). ||\n| [~Event](#classgpg_1_1_event_1ac0b9230499fdda8eface3326b99ef166)`()` ||\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Count](#classgpg_1_1_event_1a4eb8c54247277e4c8f617dcd2b748880)`() const ` | `uint64_t` Returns the number of times the event has been incremented. |\n| [Description](#classgpg_1_1_event_1a01d8ce7e40655babf5afd968c2a1c0bc)`() const ` | `const std::string &` Returns the description of the event. |\n| [Id](#classgpg_1_1_event_1aa267791e0e672bee41b7f2504059577d)`() const ` | `const std::string &` Returns the unique string that the Google Play Developer Console generated beforehand. |\n| [ImageUrl](#classgpg_1_1_event_1a2e6f44a2ddf6b00b9306ca7bf1b9f953)`() const ` | `const std::string &` Returns the URL leading to the image of the icon for this event. |\n| [Name](#classgpg_1_1_event_1a9a47a1e62994acafb15afb02de337ab1)`() const ` | `const std::string &` Returns the short name of the event. |\n| [Valid](#classgpg_1_1_event_1a4cb4348adc0bbdc1d1f7a20d0c9e2bec)`() const ` | `bool` Returns true if this event is populated with data and is accompanied by a successful response status; false for an unpopulated user-created event or for a populated one accompanied by an unsuccessful response status. |\n| [Visibility](#classgpg_1_1_event_1ad59342d5735fafb6050f2277318c8c3c)`() const ` | [EventVisibility](/games/services/cpp/api/namespace/gpg#namespacegpg_1aa87a4b2e8a01c80e2155286d4bdb9942) Returns the event state: `HIDDEN` or `REVEALED`. |\n| [operator=](#classgpg_1_1_event_1ab795a0f5221cb5b9f30934dfcb5c73d3)`(const `[Event](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event)` & copy_from)` | [Event](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event)` &` Assigns this [Event](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event) by copying from another one. |\n| [operator=](#classgpg_1_1_event_1a2de54c196b31ab58160066c750c28cbf)`(`[Event](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event)` && move_from)` | [Event](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event)` &` Assigns this [Event](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event) by moving another one into it. |\n\nPublic functions\n----------------\n\n### Count\n\n```c++\nuint64_t Count() const \n``` \nReturns the number of times the event has been incremented.\n\n[Event::Valid()](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event_1a4cb4348adc0bbdc1d1f7a20d0c9e2bec) must return true for this function to be usable. \n\n### Description\n\n```c++\nconst std::string & Description() const \n``` \nReturns the description of the event.\n\nIt can only be called when [Event::Valid()](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event_1a4cb4348adc0bbdc1d1f7a20d0c9e2bec) returns true. \n\n### Event\n\n```c++\n Event()\n``` \n\n### Event\n\n```c++\n Event(\n std::shared_ptr\u003c const EventImpl \u003e impl\n)\n``` \nConstructs an [Event](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event) from a `shared_ptr` to an `EventImpl`.\n\nIntended for internal use by the API. \n\n### Event\n\n```c++\n Event(\n const Event & copy_from\n)\n``` \nCreates a copy of an existing [Event](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event). \n\n### Event\n\n```c++\n Event(\n Event && move_from\n)\n``` \nMoves an existing [Event](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event). \n\n### Id\n\n```c++\nconst std::string & Id() const \n``` \nReturns the unique string that the Google Play Developer Console generated beforehand.\n\nUse it to refer to an event in your game client. It can only be called when [Event::Valid()](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event_1a4cb4348adc0bbdc1d1f7a20d0c9e2bec) returns true. \n\n### ImageUrl\n\n```c++\nconst std::string & ImageUrl() const \n``` \nReturns the URL leading to the image of the icon for this event.\n\n[Event::Valid()](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event_1a4cb4348adc0bbdc1d1f7a20d0c9e2bec) must return true for this function to be usable. \n\n### Name\n\n```c++\nconst std::string & Name() const \n``` \nReturns the short name of the event.\n\nUp to 100 characters. It can only be called when [Event::Valid()](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event_1a4cb4348adc0bbdc1d1f7a20d0c9e2bec) returns true. \n\n### Valid\n\n```c++\nbool Valid() const \n``` \nReturns true if this event is populated with data and is accompanied by a successful response status; false for an unpopulated user-created event or for a populated one accompanied by an unsuccessful response status.\n\nIt must be true for the getter functions on this event (`id`, `Name`, `Description`, etc.) to be usable. \n\n### Visibility\n\n```c++\nEventVisibility Visibility() const \n``` \nReturns the event state: `HIDDEN` or `REVEALED`.\n\n[Event::Valid()](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event_1a4cb4348adc0bbdc1d1f7a20d0c9e2bec) must return true for this function to be usable. \n\n### operator=\n\n```c++\nEvent & operator=(\n const Event & copy_from\n)\n``` \nAssigns this [Event](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event) by copying from another one. \n\n### operator=\n\n```c++\nEvent & operator=(\n Event && move_from\n)\n``` \nAssigns this [Event](/games/services/cpp/api/class/gpg/event#classgpg_1_1_event) by moving another one into it. \n\n### \\~Event\n\n```c++\n ~Event()\n```"]]