Example #1
0
        /// <summary>
        /// The public constructor.
        /// </summary>
        /// <since_tizen> 10 </since_tizen>
        /// <feature>http://tizen.org/feature/ui_service.sticker</feature>
        /// <exception cref="NotSupportedException">The required feature is not supported.</exception>
        /// <exception cref="InvalidOperationException">
        /// This can occur due to the following reasons:
        /// 1) This exception can be due to out of memory.
        /// 2) This exception can be due to operation failed.
        /// </exception>
        public StickerData()
        {
            SafeStickerDataHandle handle;
            ErrorCode             error = StickerDataCreate(out handle);

            if (error != ErrorCode.None)
            {
                Log.Error(LogTag, "StickerData Failed with error " + error);
                throw ExceptionFactory.CreateException(error);
            }
            _handle = handle;
        }
Example #2
0
        internal StickerData(IntPtr handle)
        {
            IntPtr    cloneHandle;
            ErrorCode error = StickerDataClone(handle, out cloneHandle);

            if (error != ErrorCode.None)
            {
                Log.Error(LogTag, "StickerData Failed with error " + error);
                throw ExceptionFactory.CreateException(error);
            }

            _handle = new SafeStickerDataHandle(cloneHandle);
        }
Example #3
0
        /// <summary>
        /// Release any unmanaged resources used by this object.
        /// </summary>
        /// <param name="disposing">
        /// If true, disposes any disposable objects. If false, does not dispose disposable objects.
        /// </param>
        /// <since_tizen> 10 </since_tizen>
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                _handle?.Dispose();
                _handle = null;
            }

            _disposed = true;
        }
 internal static extern ErrorCode StickerConsumerAddRecentData(IntPtr stickerConsumer, SafeStickerDataHandle stickerData);
 internal static extern ErrorCode StickerProviderDeleteData(IntPtr stickerProvider, SafeStickerDataHandle stickerData);
Example #6
0
 internal static extern ErrorCode StickerDataSetDisplayType(SafeStickerDataHandle stickerData, DisplayType type);
Example #7
0
 internal static extern ErrorCode StickerDataGetDate(SafeStickerDataHandle stickerData, out string date);
Example #8
0
 internal static extern ErrorCode StickerDataGetDescription(SafeStickerDataHandle stickerData, out string description);
Example #9
0
 internal static extern ErrorCode StickerDataGetThumbnail(SafeStickerDataHandle stickerData, out string thumbnail);
Example #10
0
 internal static extern ErrorCode StickerDataGetGroupName(SafeStickerDataHandle stickerData, out string group);
Example #11
0
 internal static extern ErrorCode StickerDataRemoveKeyword(SafeStickerDataHandle stickerData, string keyword);
Example #12
0
 internal static extern ErrorCode StickerDataForeachKeyword(SafeStickerDataHandle stickerData, StickerDataKeywordForeachCallback callback, IntPtr userData);
Example #13
0
 internal static extern ErrorCode StickerDataGetUri(SafeStickerDataHandle stickerData, out UriType uriType, out string uri);
Example #14
0
 internal static extern ErrorCode StickerDataGetAppId(SafeStickerDataHandle stickerData, out string appId);
Example #15
0
 internal static extern ErrorCode StickerDataCreate(out SafeStickerDataHandle stickerData);
Example #16
0
 internal StickerData(SafeStickerDataHandle handle)
 {
     _handle = handle;
 }