Example #1
0
        public nn.Result GetProfileImageUrl(ref string outUrl, ImageSize imageSize)
        {
            StringBuilder sb = new StringBuilder(160);

            nn.Result result = GetProfileImageUrl(this, sb, imageSize);
            outUrl = sb.ToString();
            return(result);
        }
Example #2
0
        public nn.Result Update()
        {
            long     size           = ImageTransferProcessor.GetImageSize(config.trimmingFormat);
            GCHandle imageBufHandle = GCHandle.Alloc(ImageBuffer, GCHandleType.Pinned);

            nn.Result result = ImageTransferProcessor.GetState(ref state, imageBufHandle.AddrOfPinnedObject(), size, handle);
            imageBufHandle.Free();
            return(result);
        }
Example #3
0
        public static void Show(nn.Result result, bool suspendUnityThreads)
        {
#if UNITY_SWITCH && ENABLE_IL2CPP
            if (suspendUnityThreads)
            {
                UnityEngine.Switch.Applet.Begin();
                Show(result);
                UnityEngine.Switch.Applet.End();
                return;
            }
#endif
            Show(result);
        }
Example #4
0
        public static nn.Result MaskProfanityWords(StringBuilder pOutText)
        {
            string text      = pOutText.ToString();
            int    byteCount = Encoding.UTF8.GetByteCount(text);

            byte[] bytes = new byte[byteCount + 1];
            Encoding.UTF8.GetBytes(text, 0, text.Length, bytes, 0);
            bytes[byteCount] = 0;

            nn.Result result = MaskProfanityWords(bytes);
            pOutText.Length = 0;
            pOutText.Append(Encoding.UTF8.GetString(bytes).TrimEnd('\0'));
            return(result);
        }
 public ProfanityFilter(bool checkDesiredLanguage)
 {
     nn.Result result = Initialize(ref _profanityFilter, ref _ngcWorkBuffer, checkDesiredLanguage);
     result.abortUnlessSuccess();
 }
 public ProfanityFilter()
 {
     nn.Result result = Initialize(ref _profanityFilter, ref _ngcWorkBuffer, true);
     result.abortUnlessSuccess();
 }
Example #7
0
 public static extern void Show(nn.Result result);
Example #8
0
 public static void Show(nn.Result result)
 {
 }